Skip to content

Instantly share code, notes, and snippets.

@jeffgeiger
Created January 21, 2015 17:03
Show Gist options
  • Save jeffgeiger/d9232303e0ec955ce430 to your computer and use it in GitHub Desktop.
Save jeffgeiger/d9232303e0ec955ce430 to your computer and use it in GitHub Desktop.
Hourly Bro intel report
#!/bin/bash
LINES=$(wc -l /nsm/bro/logs/current/intel.log | awk '{print $1}')
if [[ $LINES -gt 8 ]]; then
echo -e "<font face='monospace, monospace' size='1'>\n<pre>\n $(cat /nsm/bro/logs/current/intel.log | while read line; do echo "$line </br>"; done) \n</pre>\n</font>" | mail -a "Content-Type: text/html" -s "Bro Intel Hits - $(date)" [email protected]
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment