Created
June 8, 2021 03:23
-
-
Save zerwes/0473ee0b17a1701114ea39533e6812bb to your computer and use it in GitHub Desktop.
opnsense filterlog split up in human readable format
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
#! /bin/sh | |
clog -f /var/log/filter.log | sed 's/ \+/,/g' | awk 'BEGIN { FS = "," } ; {print "iface:"$5" action:"$7" dir:"$8" proto:"$17" src:"$19" dst:"$20" sport:"$21" dport:"$22}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment