CX-159018: Template Time Chunking#96
Open
arvyncabrera wants to merge 3 commits intosecureworks:mainfrom
Open
Conversation
Signed-off-by: arvyncabrera <arvyn.cabrera@sophos.com>
…pings from unit map. Signed-off-by: arvyncabrera <arvyn.cabrera@sophos.com>
…nd execution) and filters.py (for parsing of template filters.). modified taegis_search_results.md.jinja to include chunk results per run if it chunk_results is defined. magics.py modified to register earliest and latest filters alongside SDK.. then a conditional statement to execute chunked searches when a chunking schedule is detected Signed-off-by: arvyncabrera <arvyn.cabrera@sophos.com>
f996ee3 to
d150cdf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue #95: Template Time Chunking
This PR closes issue #95
Description:
This change adds chunked time-range search support for Jinja2 template queries. Using
| earliestor| latestwith a list of Taegis relative timestamps alongside the-tflag triggers this logic.The pull request adds
filters.py,time_range.py, andchunked_search.pyto the core service. Since the chunking logic was a bit complex, I didn't want to toss all of those functions on templates/init.py. However, I can move the change there if needed.magics.pyis updated with a conditional statement for chunked calls + filter imports. It should only the chunk logic if chunking is detected.taegis_search_results.md.jinjais also modified with a conditional statement to display all chunked executions + their sharelinks, with a final total of all results at the end.Sample test case (this will fall back onto doing three (3) 30d searches as the highest is three months, because Taegis events cannot search above 30days)