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

[syslog] Add remote syslog configuration (cherry-pick to 202305) #2939

Merged
merged 1 commit into from
Aug 11, 2023

Conversation

fastiuk
Copy link
Contributor

@fastiuk fastiuk commented Aug 4, 2023

cherry-pick: #2843

What I did

Adjust show runningconfiguration syslog command according to the new syslog configuration file

How I did it

Fix regex to match the target syslog server

How to verify it

Run the next command in sonic shell:

show runningconfiguration syslog

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

@qiluo-msft qiluo-msft merged commit d3266a4 into sonic-net:202305 Aug 11, 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
StormLiangMS added a commit that referenced this pull request Sep 5, 2023
StormLiangMS added a commit that referenced this pull request Sep 5, 2023
@fastiuk fastiuk deleted the dev-rsyslog-202305 branch December 14, 2023 00:08
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