Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Priority value and Protocol version is not shown #10

Open
abhi910 opened this issue Mar 6, 2020 · 0 comments
Open

Priority value and Protocol version is not shown #10

abhi910 opened this issue Mar 6, 2020 · 0 comments

Comments

@abhi910
Copy link

abhi910 commented Mar 6, 2020

I am trying to log messages to an external server
In the rsyslog.conf file, I've set the following
$ActionFileDefaultTemplate RSYSLOG_SyslogProtocol23Format

The message that gets logged as
2020-03-06T10:45:59+00:00 192.168.122.211 SdaStart.sh[4252] SdaReqMsg_AppReqMsg
There is no Priority and Protocol version displayed

I then add the following in conf file
$template RFC5424format,"<%PRI%>%PROTOCOL-VERSION% %TIMESTAMP:::date-rfc3339% %HOSTNAME% %APP-NAME% %PROCID% %MSGID% %STRUCTURED-DATA% %msg%/n"

The message is still the same. The Priority and Protocol version fields are not displayed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant