Last active
August 29, 2015 14:13
-
-
Save dancwilliams/f6902fcd0ed21b85f379 to your computer and use it in GitHub Desktop.
pfSense - Suricata eve.json mangement TEST
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 | |
# 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