pyslk.search_immediately#
- pyslk.search_immediately(search_string: str) int #
Performs a search based on a search_string and directly returns a search id while search is in progress
search_string has to be a valid JSON search string as described in the SLK-CLI manual. Simple double quotes has 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"}}'