thks,i konw that.
            



                                                             thanks&Best Regards


发件人: root
发送时间: 2013-02-26 20:12
收件人: rsyslog
主题: Re: Re: [rsyslog] how can i Recording the Priority in logs
if i write this

$template TraditionalFormatWithPRI,"%pri-text%: %timegenerated% %HOSTNAME% 
%syslogtag%%msg:::drop-last-lf%\n" 
;SepFile,"/var/log/hosts/%HOSTNAME%/%$YEAR%-%$MONTH%-%$DAY%.log" 

right?

if i want write in  %$YEAR%-%$MONTH%-%$DAY%.log 

how can i do?





                                                             thanks&Best Regards

From: Rainer Gerhards
Date: 2013-02-26 19:33
To: rsyslog-users
Subject: Re: [rsyslog] how can i Recording the Priority in logs
http://www.rsyslog.com/doc/rsyslog_recording_pri.html

> -----Original Message-----
> From: [email protected] [mailto:rsyslog-
> [email protected]] On Behalf Of root
> Sent: Tuesday, February 26, 2013 12:21 PM
> To: rsyslog
> Subject: [rsyslog] how can i Recording the Priority in logs
> 
> hi,all
> 
> my log now has this format,and how can i Recording the Priority in logs ?
> 
> $template SepFile,"/var/log/hosts/%HOSTNAME%/%$YEAR%-%$MONTH%-
> %$DAY%.log"
> *.* ?SepFile
> 
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com/professional-services/
> What's up with rsyslog? Follow https://twitter.com/rgerhards NOTE WELL:
> This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of sites beyond
> our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to