list of macros supported

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

list of macros supported

Postby campbellmc » Fri Nov 07, 2008 1:58 pm

Hi,

I am looking to replace syslog-ng with rsyslog on a syslog server. Can anyone tell me whether there are a list of macros available that rsyslog supports? syslog-ng has support for things like $HOST, $HOUR, $PROGRAM etc, in lines like:

/u00/log/$SOURCEIP/$YEAR/$MONTH/$DAY/$YEAR-$MONTH-$DAY.$PROGRAM.$FACILITY.log" group("logview"));

Cheers,

Campbell
campbellmc
New
 
Posts: 1
Joined: Fri Nov 07, 2008 12:39 pm

Professional Services Information

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

Re: list of macros supported

Postby rgerhards » Fri Nov 07, 2008 2:28 pm

Hi,

this is done with the property replacer in rsyslog. The relevant property doc is here:

http://www.rsyslog.com/doc-property_replacer.html

Rainer
User avatar
rgerhards
Site Admin
 
Posts: 2647
Joined: Thu Feb 13, 2003 11:57 am

Google Ads



Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron