Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5944

rsyslog: Could not find template 0 [closed]

$
0
0

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


Viewing all articles
Browse latest Browse all 5944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>