analyse a log file

0 views
Skip to first unread message

dav_cict

unread,
Nov 7, 2009, 3:50:38 AM11/7/09
to ossec-list
Hello,

We are studying in my university the possibility to deploy ossec.
I have done an testing plateform in order to evaluate and understand
the product.
It seems to me very interesting but needs a lot of work to parameter
it. and to organise actions relative to the alerts recieved.

My question:
Is it possible to analyse a log file extact from another server.
For exemple, I have a log file in syslog format from a server that I
want to analyse.
Is it possible to "give" the fiele to ossec in order to see the alerts
it can see in it ?

What I think to do is to extract each line of my log file, extract
useful information and inject log me.ssage through the command logger.

Is there a solution already done in ossec relative to this need.

Thank for any help

Excuse for my poor enghish

dan (ddp)

unread,
Nov 7, 2009, 10:43:46 AM11/7/09
to ossec...@googlegroups.com
You could cat the file and pipe it to logger, but I think you could
add the file as a <localfile> option in ossec.conf. I think ossec will
start analyzing the file from the beginning.
If I was going to d this I'd probably setup a second server just for
doing these types of investigations.
dan

Burks, Doug

unread,
Nov 9, 2009, 8:28:16 AM11/9/09
to ossec...@googlegroups.com
Hi dav_cict,

Take a look at "ossec-logtest". Here's an old blog post about it:
http://www.ossec.net/dcid/?p=136

ossec-logtest should be installed by default in current versions of
OSSEC, so you can ignore the installation instructions as you should
already have the ossec-logtest binary.

Please let us know how it goes!

Thanks,
--
Doug Burks, GCIA Gold, GSEC, CISSP
http://securityonion.blogspot.com

Reply all
Reply to author
Forward
0 new messages