문제

this is my rsyslog.conf template format:

$template userformat,"%HOSTNAME%,%syslogfacility%(%syslogFacility-text%),%syslogpriority%(%syslogpriority-text%),%syslogtag%,%timegenerated:::date-unixtimestamp%,%msg%\r\n"

but in the log file date of log is not in unixtimestap format.

도움이 되었습니까?

해결책

What version of rsyslog are you using (rsyslog -v)? As far as I can tell, the feature was only introduced in rsyslog version 6.3.8.

See my answer on ServerFault for more details.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top