[syslog] Add remote syslog configuration (cherry-pick to 202305)#2939
Merged
qiluo-msft merged 1 commit intosonic-net:202305from Aug 11, 2023
Merged
[syslog] Add remote syslog configuration (cherry-pick to 202305)#2939qiluo-msft merged 1 commit intosonic-net:202305from
qiluo-msft merged 1 commit intosonic-net:202305from
Conversation
This reverts commit 2eb87e8.
qiluo-msft
approved these changes
Aug 4, 2023
qiluo-msft
pushed a commit
to sonic-net/sonic-buildimage
that referenced
this pull request
Aug 14, 2023
) cherry-pick: #14513 depends: sonic-net/sonic-utilities#2939 * Add an ability to configure remote syslog servers * Add an initial configuration for remote syslog * Extend YANG module and add unit tests #### Why I did it Adding the following functionality to rsyslog feature: * Configure remote syslog servers: protocol, filter, severity level * Update global syslog configuration: severity level, message format #### How I did it added parameters to syslog server and global configuration. #### How to verify it create syslog server using CLI/adding to Redis-DB verify server is added to file /etc/rsyslog.conf and server is functional. #### Description for the changelog extend rsyslog capabilities, added server and global configuration parameters. #### Link to config_db schema for YANG module changes [sonic-syslog.yang](https://github.com/sonic-net/sonic-buildimage/blob/master/src/sonic-yang-models/yang-models/sonic-syslog.yang)
StormLiangMS
added a commit
that referenced
this pull request
Aug 18, 2023
This reverts commit d3266a4.
StormLiangMS
added a commit
that referenced
this pull request
Aug 18, 2023
StormLiangMS
added a commit
that referenced
this pull request
Sep 5, 2023
StormLiangMS
added a commit
that referenced
this pull request
Sep 5, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cherry-pick: #2843
What I did
Adjust
show runningconfiguration syslogcommand according to the new syslog configuration fileHow I did it
Fix regex to match the target syslog server
How to verify it
Run the next command in sonic shell:
Previous command output (if the output of a command-line utility has changed)
N/A
New command output (if the output of a command-line utility has changed)
N/A