Git Product home page Git Product logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
"system" should be a class ID as specified in the Syslog-NG template as 
${.classifier.class}.  Have you modified the syslog-ng.conf that ships with 
ELSA at all?  Also, is this a log from the local box?  There may be a change in 
syslog-ng 3.3.5, as the ELSA install should be installing 3.2.4.

Original comment by [email protected] on 14 May 2012 at 1:31

from enterprise-log-search-and-archive.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Hi 
Haven't changed the syslog-ng.conf and the template seems to be applied.
The log line is from a remote host
Also, is syslog-ng version affecting this stage of the processing?
\
thanks,

Original comment by [email protected] on 14 May 2012 at 1:52

from enterprise-log-search-and-archive.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Looking through the source, this appears to happen when a pattern matches but 
the class is not defined.  When a rule doesn't match, the class is set to 
"unknown" and the elsa.pl script changes that to the class_id 1.  One remedy 
would be to make this true for "system" as well, but since this shouldn't 
occur, there must be something else going on.  Can you test this like this:

/usr/local/syslog-ng/bin/pdbtool match -p 
/usr/local/elsa/node/conf/patterndb.xml -P sshd -M "Failed password for root 
from 172.16.1.2 port 51058 ssh2"

You should get this back:
MESSAGE=Failed password for root from 172.16.1.2 port 51058 ssh2
PROGRAM=sshd
.classifier.class=12
.classifier.rule_id=12
i0=51058
s0=password
s1=root
s2=172.16.1.2
s3=ssh2
TAGS=.classifier.12

Original comment by [email protected] on 14 May 2012 at 4:54

from enterprise-log-search-and-archive.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
I run the pdbtool :

./pdbtool match -p /srv/syslogdata/syslog-ng/var/patterndb.xml -P sshd -M 
"Failed password for root from 172.16.1.2 port 51058 ssh2"

The output is:

MESSAGE=Failed password for root from 172.16.1.2 port 51058 ssh2
PROGRAM=sshd
.classifier.class=system
.classifier.rule_id=aecda233-3d80-48cd-a72b-4896f58069c8
usracct.username=root
usracct.device=172.16.1.2
usracct.authmethod=password
usracct.service=ssh2
usracct.type=login
usracct.sessionid=
usracct.application=sshd
secevt.verdict=REJECT
TAGS=.classifier.system,usracct,secevt

Can there be an issue with my patterndb.xml file, not delegating variables to 
i0,s0...etc?

Original comment by [email protected] on 15 May 2012 at 10:13

from enterprise-log-search-and-archive.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Ok, it appears you've got some of the shipped Balabit patterndb patterns 
somewhere, as this is a rule not provided by ELSA.  Check your syslog-ng.conf 
file for what pattern files and directories are being loaded, and in one of 
those files and disable any that aren't /usr/local/elsa/node/conf/patterndb.xml.

Original comment by [email protected] on 15 May 2012 at 1:25

from enterprise-log-search-and-archive.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Closing until I hear back regarding location of patterndb.xml.

Original comment by [email protected] on 31 May 2012 at 2:43

  • Changed state: Done

from enterprise-log-search-and-archive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.