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

[rsyslog] Add the syslog message format as specified in RFC 5424. #19012

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

shihhsien-wang
Copy link

Why I did it

Because it does not support RFC5424 for remote syslog servers, we propose to support it.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Add RFC5424 format for remote servers.

How to verify it

Configure to add a remote server and check the received syslog messages are conform to RFC5424.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211
  • 202305

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Signed-off-by: sh_wang <sh_wang@edge-core.com>
@shihhsien-wang shihhsien-wang requested a review from lguohan as a code owner May 20, 2024 05:56
Copy link

linux-foundation-easycla bot commented May 20, 2024

CLA Signed

  • ✅login: shihhsien-wang / (42e3ed1)

The committers listed above are authorized under a signed CLA.

@@ -56,6 +56,9 @@ $ActionFileDefaultTemplate SONiCFileFormat
$template SONiCForwardFormat,"<%PRI%>%TIMESTAMP:::date-rfc3339% %HOSTNAME% %syslogseverity-text:::uppercase% %syslogtag%%msg:::sp-if-no-1st-sp%%msg:::drop-last-lf%\n"
$ActionForwardDefaultTemplate SONiCForwardFormat

# Define the syslog message format as specified in RFC 5424.
$template SONiCFileFormat_RFC5424,"<%PRI%>1 %TIMESTAMP:::date-rfc3339% %HOSTNAME% %APP-NAME% %PROCID% %MSGID% %STRUCTURED-DATA% %msg%\n"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it require any change in sonic-mgmt syslog test?

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

Successfully merging this pull request may close these issues.

2 participants