Closed mjschultz closed 9 years ago
This adds a simple CLI to the program, allowing the basic examples to be done easily. For example:
flowlogs_reader flowlog_group
flowlogs_reader -s '2015-08-13 00:00:00' -e '2015-08-14 00:00:00' flowlog_group
flowlogs_reader flowlog_group ipset
flowlogs_reader flowlog_group findip 198.51.100.2
flowlogs_reader flowlog_group | grep REJECT
This adds a simple CLI to the program, allowing the basic examples to be done easily. For example:
flowlogs_reader flowlog_group
will simple print all the flows in the past hourflowlogs_reader -s '2015-08-13 00:00:00' -e '2015-08-14 00:00:00' flowlog_group
prints all the flows from August 13flowlogs_reader flowlog_group ipset
will print the unique IPs seen in the past hourflowlogs_reader flowlog_group findip 198.51.100.2
will print all flows involving 198.51.100.2.flowlogs_reader flowlog_group | grep REJECT
to show the REJECTed flows.