Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Sostat cleanup output: Suricata output when no packet drops received and sostat-interface formatting #7
added a commit
this pull request
Jul 14, 2016
Yes, I believe that is correct. Did I screw something up? Thanks, Wes…
On Jul 20, 2016 9:39 AM, "Doug Burks" ***@***.*** wrote: It looks like we take the last 50 lines of the stats.log ($i) and pipe that into a grep of the same file. Is that correct? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub b63e3d9#commitcomment-18319673, or mute the thread https://github.com/notifications/unsubscribe-auth/AQDNqLWLq-75Mdjc8U33AO96EQyZw_QDks5qXiT0gaJpZM4JQyNE .
I see your point--I didn't realize this was searching the entire file again and not just the output of the tail. I can modify, test, and re-submit when I get a chance. Thanks, Doug!…
On Jul 20, 2016 9:55 AM, "Doug Burks" ***@***.*** wrote: Should the grep be searching the tail output instead of searching the file directly? Meaning that we should take tail -n 50 $i | grep -c drop $i and remove the second $i, making it just tail -n 50 $i | grep -c drop? — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub b63e3d9#commitcomment-18320007, or mute the thread https://github.com/notifications/unsubscribe-auth/AQDNqDmQgqp1A938GAJartggtI0ILW3Eks5qXijGgaJpZM4JQyNE .