-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add filter option ala 'grep -E' #216
Comments
RTFM :) Maybe its possible to do this via stdin? the --help shows :
So if I wanted to grep -E 'one|two|three|four' on a series of input files (e.g. /path/to/log1 /path/to/log2 /path/to/log3) and then pass that onto s4 what would the syntax be? |
Thanks for the suggestion @geolaw and the write-up with an example. That really helps :-)
This is where process Piping should be used.
I think what you want is to pipe data from
or
|
Summary
Would be great to be able to filter log items based on a regex
Current behavior
s4 will merge all lines
Suggested behavior
Using the '-E' option like on grep, pass s4 a regex to filter the logs on
Describe the feature change.
s4 -E 'one|two|three|four' log1 log2 log3 > merged
Will only result in lines from log1, log2 and log3 container 'one' 'two' 'three' or 'four'
Other
I was planning on just post processing the output with a pipe to grep -E, but then I realized with the other RFE that I submitted (#215) that ideally a RFE to build this right into s4 would be more ideal
The text was updated successfully, but these errors were encountered: