jgrep - filters output by pattern matching against JSON object fields
version 0.03
jgrep [-v] [-i] -m field1=pattern -m field2=pattern [/path/to/file1 /path/to/file2 ...]
Filters JSON-formatted line input from supplied file path(s) or standard input if not provided.
Only include lines if the value of field matches the regular expression pattern. If the field is not present in the object, its value is treated as an empty string. This switch may be used multiple times.
field
pattern
Ignore case when performing matching.
Invert the meaning of patterns provided by --match.
--match
Jeff Ober <sysread@fastmail.fm>
This software is copyright (c) 2018 by Jeff Ober.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::JsonLogUtils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::JsonLogUtils
CPAN shell
perl -MCPAN -e shell install App::JsonLogUtils
For more information on module installation, please visit the detailed CPAN module installation guide.