pyslk.search#
- pyslk.search(search_string: str) int #
Performs a search based on a search_string can be provided. returns search id
search_string has to be a valid JSON search string as described in the SLK-CLI manual. Simple double quotes have to be used in the JSON expression (no escaped double quotes, no escaped special characters).
- Parameters:
search_string (
str
) – JSON search query string- Returns:
search id of the performed search
- Return type:
int
Examples
search_string='{"resources.mtime": {"$gt": "2021-09-02"}}'