Return a list of the full paths to each of the .json files in a directory.
Parameters: | |
---|---|
Return type: | list |
Return a generator over user objects and their queries from the given directory.
The directory is assumed to contain a list of .json files, each of which is assumed to adhere to the format expected by get_users_from_file.
Parameters: | limit (int) – The approximate number of bytes to read in (for testing) |
---|---|
Return type: | generator |
Return a generator over user objects and their queries from the given file.
It is assumed that the file will contain a list of results in JSON format. Each result is a dictionary with an assumed set of keys. This is the format that corresponds to Version.FORMAT_2012.
Parameters: | filename (str) – The path to the .json file containing the queries |
---|---|
Return type: | generator |
Return True if the given string is an error key.
Parameters: | key (splunk_record) – The string to check |
---|---|
Return type: | bool |
Return True if the given string is a search key.
Parameters: | key (splunk_record) – The string to check |
---|---|
Return type: | bool |
Return True if the given string is a search length key.
Parameters: | key (splunk_record) – The string to check |
---|---|
Return type: | bool |
Return True if the given string is a range key.
Parameters: | key (splunk_record) – The string to check |
---|---|
Return type: | bool |
Return True if the given string is a search type key.
Parameters: | key (splunk_record) – The string to check |
---|---|
Return type: | bool |
Return all the data in a list of .json files in a big list.
Parameters: | jsonfile (str) – The path to the .json file |
---|---|
Return type: | list or dict |
Load the data contained in a .json file and return the corresponding Python object.
Parameters: | jsonfile (str) – The path to the .json file |
---|---|
Return type: | list or dict |
Print all the parseable searches contained in a set of files containing Splunk results.
Parameters: | jsonfiles (list) – A list of .json files |
---|---|
Return type: | None |
Print all the searches contained in a set of files containing Splunk results.
Parameters: | splunk_results (list) – A list of .json files |
---|---|
Return type: | None |
Write out a list of .json files with the data in the given iterable.
TODO: Delete me.
Parameters: |
|
---|