API Reference¶
|
Execute a query on Splunk |
-
class
intake_splunk.core.SplunkSource(query, url, auth, chunksize=5000, metadata=None)[source]¶ Execute a query on Splunk
- Parameters
- querystr
String to pass to Splunk for execution. If it does not start with “|” or “search”, “search” will be prepended.
- urlstr
Endpoint on which to reach splunk, including protocol and port.
- auth(str, str) or str
Username/password to authenticate by.
- chunksizeint
- Attributes
- cache_dirs
- classname
- datashape
- description
- has_been_persisted
hvplotReturns a hvPlot object to provide a high-level plotting API.
- is_persisted
plotReturns a hvPlot object to provide a high-level plotting API.
plotsList custom associated quick-plots
Methods
close(self)Close open resources corresponding to this data source.
discover(self)Open resource and populate the source attributes.
export(self, path, \*\*kwargs)Save this data for sharing with other people
persist(self[, ttl])Save data from this source to local persistent storage
read(self)Load entire dataset into a container and return it
read_chunked(self)Return iterator over container fragments of data source
read_partition(self, i)Return a part of the data corresponding to i-th partition.
to_dask(self)Return a dask container for this data source
to_spark(self)Provide an equivalent data object in Apache Spark
yaml(self[, with_plugin])Return YAML representation of this data-source
get_persisted
set_cache_dir