• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Snort Barnyard2 stopped logging to mysql

Scheduled Pinned Locked Moved IDS/IPS
7 Posts 3 Posters 2.2k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J
    Justin53
    last edited by May 23, 2015, 4:19 AM May 23, 2015, 2:46 AM

    I finished setting up barnyard2 on both my WAN&LAN interfaces last night to my dedicated MySQL box. Everything was working fine for roughly 2 hours now whenever a snort alert is generated barnyard2 outputs the following message in the pfsense general log:```
    "WARNING database [Database()]: Called with Event[0x0] Event Type [0] (P)acket [0x4226c00], information has not been outputed."

    1 Reply Last reply Reply Quote 0
    • J
      Justin53
      last edited by May 23, 2015, 4:19 AM

      edit: sorry was trying to edit original post..

      1 Reply Last reply Reply Quote 0
      • G
        gerby123
        last edited by May 27, 2015, 4:31 PM May 27, 2015, 12:52 PM

        I've got the same issue, deleting the waldo file results in Barnyard trying to run through all the previous alerts as well with the same error message.  To be clear, no messages have ever been logged to the SQL server though it does successfully connect.

        Any help would be greatly appreciated; an example of the logged message I receive is below.

        barnyard2[83864]: WARNING database [Database()]: Called with Event[0x0] Event Type [ 0 ] (P)acket [0x8d50c00], information has not been outputed.

        Note: I added the spaces in [ 0 ] to fix forum formatting.

        pfSense version 2.2.2-RELEASE
        Snort package: 3.2.4

        1 Reply Last reply Reply Quote 0
        • G
          gerby123
          last edited by May 27, 2015, 1:37 PM

          Only other information I'm able to find on this issue:

          https://github.com/firnsy/barnyard2/issues/143

          1 Reply Last reply Reply Quote 0
          • B
            bmeeks
            last edited by May 29, 2015, 2:50 PM

            I am sorry you are having the Barnyard2 issue.  The Snort and Suricata packages simply use Barnyard2 and MySQL "as-is" from upstream. If you find out some information that helps with the problem, and it is something I can incorporate into the packages, please post back and let me know.

            Bill

            1 Reply Last reply Reply Quote 0
            • J
              Justin53
              last edited by Jun 12, 2015, 5:36 AM

              @bmeeks:

              I am sorry you are having the Barnyard2 issue.  The Snort and Suricata packages simply use Barnyard2 and MySQL "as-is" from upstream. If you find out some information that helps with the problem, and it is something I can incorporate into the packages, please post back and let me know.

              Bill

              I found the problem, after disabling the "OpenAppID" pre-processor signatures are now being logged to MySQL. However now I am experiencing another issue:

              
              Jun 12 00:38:28	barnyard2[52951]: database: Closing connection to database "snorby"
              Jun 12 00:38:28	barnyard2[52951]: Barnyard2 exiting
              Jun 12 00:38:28	barnyard2[52951]: FATAL ERROR: [dbProcessSignatureInformation()]: Failed, stoping processing
              Jun 12 00:38:28	barnyard2[52951]: [dbProcessSignatureInformation()]: ERROR inserting new signature
              Jun 12 00:38:28	barnyard2[52951]: INFO [dbProcessSignatureInformation()]: [Event: 3722838017] with [gid: 1] [sid: 2500008] [rev: 3630] [classification: 14] [priority: 2] Signature Message -> "[ET COMPROMISED Known Compromised or Hostile Host Traffic TCP group 5]" was not found in barnyard2 signature cache, this could mean its is the first time the signature is processed, and will be inserted in the database with the above information, this message should only be printed once for each signature that is not present in the database The new inserted signature will not have its information present in the sig_reference table,it should be present on restart if the information is present in the sid-msg.map file. You can allways update the message via a SQL query if you want it to be displayed correctly by your favorite interface
              Jun 12 00:38:23	snort[89021]: [1:2500008:3630] ET COMPROMISED Known Compromised or Hostile Host Traffic TCP group 5 [Classification: Misc Attack] [Priority: 2] {TCP} xx.xx.xx.xx:12646 -> xx.xx.xx.xx:22
              
              
              1 Reply Last reply Reply Quote 0
              • B
                bmeeks
                last edited by Jun 12, 2015, 12:21 PM

                I do recall seeing on the Barnyard2 Github page that OpenAppID events are not supported by Barnyard.

                Your new error seems to be related to the general issues the newer Barnyard2 code seems to have with SQL.  I became so frustrated with Barnyard2 and Snorby on my own home firewall installation that I just disabled Barnyard2 last month.  Got tired of restarting it and clearing the signature reference table and all the other hassles.

                Bill

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received