[Snort-users] barnyard processing of unified snort files

Andrew R. Baker andrewb at ...950...
Sun Jul 6 07:22:09 EDT 2003

Scott Renna wrote:
> Hello all,
> I have gotten everything running nice and smoothly with Snort and
> Barnyard now, but I was wondering about Snort Unified Alert file names.
> The files that I have are snort.alert.######
> and snort.log.########.  According to Barnyard docs, these #s represent
> the time in seconds since epoch.  Is there any way to actually set these
> so that they output in date and time format that is a little more
> humanly comprehensible?  The problem I'm running into when using
> Barnyard with these files is that the output logs that barnyard spits
> out, don't show the proper time, it's off by about 4 hours.  I have
> checked my machine and its time is set properly.
> Has anyone else seen something like this in alert_fast.log?:

By default, Barnyard will use UTC for all timestamps.  To configure it 
to use local timestamps, add "config localtime" to your barnyard.conf. 
UTC is preferred over localtime since it does not have the time gaps and 
duplications associated with daylight savings time.  Also, it tends to 
make things easier when corresponding with people in remote locations.

> Also, while I'm emailing this off, I had a question in regards to
> utilizing the -f switch for continuous processing.  The docs for
> barnyard say to specify the spool so i'm running two barnyard processes
> one with -f /var/log/snort/snort.alert and one with -f
> /var/log/snort/snort.log in order to have it review both types of files.
> Is this proper syntax or is there a better way?

Currently, that is the best way.


More information about the Snort-users mailing list