FAQ
Hello All,

Does the rsyslog version in CentOS 5 support expression based filters?
I'm asking because a filter I believe should be working, isn't and I
cannot figure out why.

I'm trying to get the following expression working (might wrap):

if $source == 'astappsrv2' and $programname == 'asterisk' then /var/log/asterisk/astappsrv2.log

Every time I restart rsyslog, I get this error (slightly edited to make
it fit):

rsyslogd:unknown priority name "log"
rsyslogd:the last error occured in /etc/rsyslog.conf, line 16
rsyslogd:warning: selector line without actions will be discarded


The line rsyslog is having problems with is the expression based filter.
astappsrv2 is the log client, and it's successfully sending it's logs to
the remote log host (the one on which I'm having problems with the
expression filter). I know the logs are coming in because I've setup
property based filters that all work just fine.

I can take this to the rsyslog list if need be. I wanted to try here
first.

Regards,

Ranbir

--
Kanwar Ranbir Sandhu
Linux 2.6.27.21-170.2.56.fc10.x86_64 x86_64 GNU/Linux
13:46:04 up 1 day, 14:56, 4 users, load average: 1.03, 0.41, 0.14

Search Discussions

  • Kanwar Ranbir Sandhu at May 25, 2009 at 6:44 pm

    On Mon, 2009-05-25 at 13:59 -0400, Kanwar Ranbir Sandhu wrote:
    Hello All,

    Does the rsyslog version in CentOS 5 support expression based filters?
    I'm asking because a filter I believe should be working, isn't and I
    cannot figure out why.
    I think this is the likely problem: the CentOS version of rsyslog does
    not support expression based filters. Dang.

    Does anyone know where I can get i386/x86_64 rpms of the latest 3.0
    stable tree release of rsyslog for CentOS 5?

    Regards,

    Ranbir

    --
    Kanwar Ranbir Sandhu
    Linux 2.6.27.21-170.2.56.fc10.x86_64 x86_64 GNU/Linux
    14:43:08 up 1 day, 15:53, 3 users, load average: 1.35, 1.29, 1.14

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcentos @
categoriescentos
postedMay 25, '09 at 5:59p
activeMay 25, '09 at 6:44p
posts2
users1
websitecentos.org
irc#centos

1 user in discussion

Kanwar Ranbir Sandhu: 2 posts

People

Translate

site design / logo © 2021 Grokbase