Repository navigation
CLI: Filter output with presets from the GUI - #2648
Merged
Merged
Conversation
* Add global `-p, --preset` option loading a preset document exported from the GUI and writing the records matching its enabled filters only. Filtering happens while parsing, so it works for files, TCP and UDP alike. * Read the documents with a small serde module in the CLI, sharing the fixtures with the GUI importer tests to keep both parsers in sync. * Match on the canonical message rendering inside the text formatter, where it exists already, and move output file, flushing and message counters into a `MessageWriter`, which also reports the dropped records in the session summary. * Reject `--preset` with binary output during argument validation; filtering binary records needs DLT-level filters instead. Core Crates: * Combine the filters in `processor` with the rule the search already uses, collapsing the two existing copies of it into `filter::as_combined_regex` next to the new `LineSearcher::from_filters`.
AmmarAbouZor
force-pushed
the
cli-presets
branch
from
September 23, 2026 11:06
521f4c2 to
87e9478
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.
This PR closes #2643
It includes:
-p, --presetoption loading a preset document exported from the GUI and writing the records matching its enabled filters only. Filtering happens while parsing, so it works for files, TCP and UDP alike.MessageWriter, which also reports the dropped records in the session summary.--presetwith binary output during argument validation; filtering binary records needs DLT-level filters instead.Core Crates:
processorwith the rule the search already uses, collapsing the two existing copies of it intofilter::as_combined_regexnext to the newLineSearcher::from_filters.Also CLI version is pumped to
0.3.0+ Updates for Changelog and repo docs