Skip to content

Instantly share code, notes, and snippets.

@dancwilliams
Last active August 29, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancwilliams/f6902fcd0ed21b85f379 to your computer and use it in GitHub Desktop.
Save dancwilliams/f6902fcd0ed21b85f379 to your computer and use it in GitHub Desktop.
pfSense - Suricata eve.json mangement TEST
#!/bin/sh
# This script is used to copy the eve.json file to the /usr/local/www/ directory, delete the current file, and create a blank one.
# THIS IS A TEST SCRIPT!!! NOT FOR PRODUCATION USE!!! USE AT YOUR OWN RISK!!!
cp /var/log/suricata/suricata_bge022807/eve.json /usr/local/www/
#echo "Copying File"
#rm /var/log/suricata/suricata_bge022807/eve.json
#echo "Removing File"
#touch /var/log/suricata/suricata_bge022807/eve.json
#echo "File created successfully"
true > /var/log/suricata/suricata_bge022807/eve.json
echo `date +%Y%m%d%H%M%S` >> /home/scripts/suricata_eve_mgmt.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment