How to send Snort alert logs to Graylog without Barnyard2?



  • Barnyard2 is outdated and poorly supported, it simply can't do the job.

    https://forum.netgate.com/topic/127811/snort-barnyard2-syslog-fatal-error/2
    https://github.com/firnsy/barnyard2/issues/144

    Is there another way to to achieve this?

    Thanks in advance,

    Karel Van Hecke.



  • Snort3, once it arrives in production form, offers JSON logging options that will work better than the old Unified2 logging. There are some implementations out there today using an ELK stack to grab Snort logs. You can search around on Google for some examples.

    You are correct that Barnyard2 is really almost dead. I've seen no development work on it in several years, and it has some serious MySQL database interface bugs after the last update it did receive several years back.



  • @bmeeks In the meantime I am simply sending Snort alerts to the general pfSense log and forward them that way.



  • The best method i've found around this is to edit the rule attached to the interface.

    Alert Settings
    āœ“ "Send Alerts to System Log Snort will send Alerts to the firewall's system log."

    then on the pfsense interface head into :
    Status >System> Logs>Settings

    Remote Logging Options
    āœ“ Enable Remote Logging Send log messages to remote syslog server.

    although in my opinion this isn't particularly secure in comparison to TCP with TLS