firnsy / barnyard2

Barnyard2 is a dedicated spooler for Snort's unified2 binary output format.
GNU General Public License v2.0
343 stars 189 forks source link

Barnyard2 not verify mysql database parameters and not logging to database snort logs #171

Open tharu85 opened 8 years ago

tharu85 commented 8 years ago

When I execute barnyard2, it is not verify the mysql parameters. Just display only below lines

    --== Initializing Barnyard2 ==--

Initializing Input Plugins! Initializing Output Plugins! Parsing config file "/etc/snort/barnyard2.conf"

and after that no database parameter verification line comes out.

my barnyard command is sudo barnyard2 -c /etc/snort/barnyard2.conf -d /var/log/snort -f merged.log -w /var/log/snort/barnyard2.waldo

and my database configurations are as below and I am using default mysql login output database: log, mysql, user=root password= dbname=snort host=localhost

Here is my snort and .waldo files in log directory. But .Waldo file did not write logs to mysql db. tharaka@ubuntu:~$ ls -l /var/log/snort/ total 640 -rw-r--r-- 1 root root 4350 Nov 16 18:35 barnyard2.alert -rw-r--r-- 1 root root 2056 Nov 16 18:35 barnyard2.waldo -rw------- 1 root root 21080 Nov 16 08:50 merged.log.1447692592 -rw------- 1 root root 603297 Nov 16 09:24 merged.log.1447692981

Kindly help me to resolve this issue. I can't rectify the bug ....