I want to change rsyslog output format for specific program so, I defined simple template in /etc/rsyslog.conf
as follows
$template (name="ta" type="string" string="%syslogpriority-text%")
and in /etc/rsyslog.d/50-default.conf I define the following action
if ($programname == 'OCSX') then { action(type="omfile" file="/var/log/saba.log" template="ta") stop}
but when I start rsyslogd daemon I see error in logfile as follows:
Could not find template 0 'ta' - action disabled [v8.2112.0 try https://www.rsyslog.com/e/3003 ]error during parsing file /etc/rsyslog.d/50-default.conf, on or before line 10: errors occured in file '/etc/rsyslog.d/50-default.conf' around line 10 [v8.2112.0 try ttps://www.rsyslog.com/e/2207 ]
The platform is Ubuntu 11.4.0
Can you help me?Thank you