Templates, Filters and RELP

This is the place for you, if you got rsyslog up and running but wonder how to make it do what you want.

Moderator: rgerhards

Templates, Filters and RELP

Postby pquinton on Wed Sep 24, 2008 3:16 pm

First post, hope I don't look daft....

Just getting into Rsyslog (version 3.18.3), so forgive me if this is obvious.

This works:
Code: Select all
:hostname, !isequal, "HCUKMCUX76" :omrelp:HCUKMCUX76:2514;RSYSLOG_ForwardFormat

This doesn't work quite the same...
Code: Select all
$template TClusterPartnerRELP, :omrelp:HCUKMCUX76:2514;RSYSLOG_ForwardFormat
:hostname, !isequal, "HCUKMCUX76" ?TClusterPartnerRELP


The first one sends messages to a destination server if the message hostname does not equal HCUKMCUX76 ( Don't ask why, another issue all together)... And that works.

The seconds should do the same (assuming I understand templates), however, it creates a log file ":omrelp:HCUKMCUX76:2514;RSYSLOG_ForwardFormat" and pops the messages in there rather than processing the omrelp line.

Have I missed something?

Phil.
pquinton
New
 
Posts: 1
Joined: Wed Sep 24, 2008 2:56 pm

Professional Services Information

  • Custom written rsyslog.conf?
  • Maintenance Contract?
  • Installation support?

Google Ads


Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron