Skip to content

[rsyslog][multiasic]Fix the syslog server $UDPServerAddress null setting issue#9058

Closed
mlok-nokia wants to merge 1 commit intosonic-net:masterfrom
mlok-nokia:rsyslog-server-cfg
Closed

[rsyslog][multiasic]Fix the syslog server $UDPServerAddress null setting issue#9058
mlok-nokia wants to merge 1 commit intosonic-net:masterfrom
mlok-nokia:rsyslog-server-cfg

Conversation

@mlok-nokia
Copy link
Contributor

@mlok-nokia mlok-nokia commented Oct 26, 2021

Why I did it

In multi NPU platform, rsyslog server doesn't work due to the UDPServerAddress is set to null in the /etc/rsyslog.conf file. i It should be the docker0 interface address. Fixes #9057

How I did it

-- In multiasic platform, using shell command "ip -j -4 .." option, the docker0 is not the first entry in the dictionary. We need to use the option "scope global" to make sure docker0 interface is the first entry to allow "jq" to parser and derives the correct ip address.

How to verify it

  1. login on the multiasic platform
  2. open the /etc/rsyslog.conf file to verify the UDPServerAddress is set to 240.127.1.1
# provides UDP syslog reception
$ModLoad imudp
$UDPServerAddress 240.127.1.1  #bind to localhost before udp server run
$UDPServerRun 514

# provides TCP syslog reception

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Description for the changelog

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

…ing issue

-- In multiasic platform, using shell command "ip -j -4 .." option, the docker0 is not the first entry in the dictionary. We need to use the option "scope global" to make sure docker0 is the first entry to allow "jq" to parser derives the correct IP address.

Signed-off-by: mlok <[email protected]>
@mlok-nokia
Copy link
Contributor Author

Duplicated with: [multi-asic] fix syslog not getting generated. #9160

@mlok-nokia mlok-nokia closed this Nov 3, 2021
@mlok-nokia mlok-nokia deleted the rsyslog-server-cfg branch January 25, 2022 15:34
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.

[rsyslog.conf][multiasic] rsyslog server $UDPServerAddress is null in /etc/rsyslog.conf file in multiasic platform

1 participant