Make Jinja2 compatible filters for earliest and latest.
Function should take a list of Taegis QL relative timestamps. Attempt to run query with largest range. If query errors or times out, separate relative timestamps date ranges of the primary over the secondary parameters. Warnings should be provided for chunks that fail, but should not fail to continue processing. Future improvements will be to retry failed chunks into even smaller ones. Server timeouts and temporary network issues can be solved with Taegis SDK middlewares.
Example:
%%taegis alerts search --tenant 50530 --region charlie --assign alerts -t --track --cache
FROM alert
WHERE
severity >= 0.6 AND
investigations_ids IS NOT NULL
{{ ['-30d', '-15d', '-7d', '1d'] | earliest }}
Chunking should try 30 days. Then conduct 2 15d searches, then 5 7d (up to 30d) searches, then 30 1d searches.
https://jinja.palletsprojects.com/en/stable/templates/#filters
https://docs.taegis.secureworks.com/search/querylanguage/advanced_search/#time-ranges
Make Jinja2 compatible filters for earliest and latest.
Function should take a list of Taegis QL relative timestamps. Attempt to run query with largest range. If query errors or times out, separate relative timestamps date ranges of the primary over the secondary parameters. Warnings should be provided for chunks that fail, but should not fail to continue processing. Future improvements will be to retry failed chunks into even smaller ones. Server timeouts and temporary network issues can be solved with Taegis SDK middlewares.
Example:
https://jinja.palletsprojects.com/en/stable/templates/#filters
https://docs.taegis.secureworks.com/search/querylanguage/advanced_search/#time-ranges