barnyard2 shows as it sees records output
========================================================================
Running in Continuous mode
--== Initializing Barnyard2 ==--
Initializing Input Plugins!
Initializing Output Plugins!
Parsing config file "/etc/snort/barnyard2.conf"
Log directory = /var/log/barnyard2
Last event seen for sid 1 was 0
database: compiled support for (mysql)
database: configured to use mysql
database: schema version = 107
database: host = localhost
database: user = snort
database: database name = snort
database: sensor name = localhost:eth0
database: sensor id = 1
database: sensor cid = 1
database: data encoding = hex
database: detail level = full
database: ignore_bpf = no
database: using the "log" facility
--== Initialization Complete ==--
______ -*> Barnyard2 <*-
/ ,,_ \ Version 2.1.10-beta2 (Build 266)
|o" )~| By Ian Firns (SecurixLive): http://www.securixlive.com/ + '''' + (C) Copyright 2008-2011 Ian Firns <fir...@securixlive.com>
> i am not sure what i am doing wrong which causes barnyard2 to output > to Mysql
Again you should use unified2 output with barnyard2 since the "spooler" is not designed for the 3 mode available in snort thus alert_unified2,log_unified2 and unified2.
1: Now make sure you are logging in a clean directory 2: make sure for testing purpose your running snort with -k none 3: enable syslog output plugin in barnyard2 at the same time as your db output and watch your local syslog for information.
Also if you have time subscribe to barnyard2-users google group, since snort ml is generaly used for snort only issue :)
Cheers, and hopefully seeing you on barnyard2-users
> On Mar 3, 10:20 pm, beenph <bee...@gmail.com> wrote: >> On Sat, Mar 3, 2012 at 9:11 AM, snort_user <doreachsh...@gmail.com> wrote: >> > thanks for your reply
>> > no i am seeing some data in it but Barnyard is not showing any count >> > of records earlier and updating mysql database.
>> > but now
>> > I got interesting stuff, now i am trying with ubuntu 10 .04 and >> > barnyard2-v2-1.10-beta2.tar.gz
>> > same probelm but when is enable these two lines snort.conf i am seeing >> > barnyard2 counting records but not updating mysql
> > i am not sure what i am doing wrong which causes barnyard2 to output
> > to Mysql
> Again you should use unified2 output with barnyard2 since the
> "spooler" is not designed for the 3 mode available
> in snort thus alert_unified2,log_unified2 and unified2.
> 1: Now make sure you are logging in a clean directory
> 2: make sure for testing purpose your running snort with -k none
> 3: enable syslog output plugin in barnyard2 at the same time as your
> db output and watch your local syslog for information.
> Also if you have time subscribe to barnyard2-users google group, since
> snort ml is generaly used for snort only issue :)
> Cheers, and hopefully seeing you on barnyard2-users
> -elz
> > thanks
> > On Mar 3, 10:20 pm, beenph <bee...@gmail.com> wrote:
> >> On Sat, Mar 3, 2012 at 9:11 AM, snort_user <doreachsh...@gmail.com> wrote:
> >> > thanks for your reply
> >> > no i am seeing some data in it but Barnyard is not showing any count
> >> > of records earlier and updating mysql database.
> >> > but now
> >> > I got interesting stuff, now i am trying with ubuntu 10 .04 and
> >> > barnyard2-v2-1.10-beta2.tar.gz
> >> > same probelm but when is enable these two lines snort.conf i am seeing
> >> > barnyard2 counting records but not updating mysql
Snort Version : 2.9.2.1 (Installed from source) Barnyard2 Version : 2-1.10-beta2 (firnsy-barnyard2-v2-1.10-beta2.tar.gz) tried also Barnyard2 version 2-1.9
I had same probelm barnyard2 not updating mysql database, when tried with Fedora 16, now checking with Ubuntu 10.04 also not working
earlier i has installed barnyard2 and snort in Fedora 14 and it was working fine without any issues
config settings now ===================
in /etc/snort/snort.conf -------------------------------------------------------------------------- output unified2: filename snort.u2, limit 128 --------------------------------------------------------------------------
and /var/log/snort directory i see snort.log.1330794042 file getting created and when issue more snort.log.1330794042 i could see some letters filled but not in readable format, sure it is not blank file and verified mysql using command below no events updated ----------------------------------------------- mysql> select * from event; Empty set (0.00 sec) ------------------------------------------------
each time i stop snort and start snort again new snort.log file is getting created similar to snort.log.1330794042 in /var/log/snort
> > i am not sure what i am doing wrong which causes barnyard2 to output > > to Mysql
> Again you should use unified2 output with barnyard2 since the > "spooler" is not designed for the 3 mode available > in snort thus alert_unified2,log_unified2 and unified2.
> 1: Now make sure you are logging in a clean directory > 2: make sure for testing purpose your running snort with -k none > 3: enable syslog output plugin in barnyard2 at the same time as your > db output and watch your local syslog for information.
> Also if you have time subscribe to barnyard2-users google group, since > snort ml is generaly used for snort only issue :)
> Cheers, and hopefully seeing you on barnyard2-users
> -elz
> > thanks
> > On Mar 3, 10:20 pm, beenph <bee...@gmail.com> wrote: > >> On Sat, Mar 3, 2012 at 9:11 AM, snort_user <doreachsh...@gmail.com> > wrote: > >> > thanks for your reply
> >> > no i am seeing some data in it but Barnyard is not showing any count > >> > of records earlier and updating mysql database.
> >> > but now
> >> > I got interesting stuff, now i am trying with ubuntu 10 .04 and > >> > barnyard2-v2-1.10-beta2.tar.gz
> >> > same probelm but when is enable these two lines snort.conf i am seeing > >> > barnyard2 counting records but not updating mysql