Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save githubfoam/a44ecb188e50e388f1c00dc9b8ebf25c to your computer and use it in GitHub Desktop.

Select an option

Save githubfoam/a44ecb188e50e388f1c00dc9b8ebf25c to your computer and use it in GitHub Desktop.
CheckpointGW R77.30 Graylog Syslog Integration
#Log in expert mode
# echo $FWDIR
/opt/CPsuite-R77/fw1
# ls -l /opt/CPsuite-R77/fw1/log/
#vi /etc/rc.d/init.d/cpboot
fw log -f -t -n -l $FWDIR/fw1/log/fw.adtlog|logger -p local5.info -t CP_FireWALL &
fw log -f -t -n -l $FWDIR/fw1/log/fw.log|logger -p local5.info -t CP_FireWALL &
fw log -f -t -n -l $FWDIR/fw1/log/fwui.log|logger -p local5.info -t CP_FireWALL &
reboot
#vi /etc/syslog.conf
severity level "info - 5"
local5.info @IPGRAYLOGSERVER:1514
OR
*.* @IPGRAYLOGSERVER
/etc/init.d/syslog restart
#Troubleshooting syslog traffic
echo '<0>Testing graylog for connectivity IPFW CHECKPOINTGW' | nc -w 1 -u IPGRAYLOGSERVER 514
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment