Got it

Send operation logs only to the Log Host

Created: Aug 28, 2020 07:28:52Latest reply: Sep 9, 2020 01:25:39 489 3 0 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hello all,

How do I configure a router to send operation logs only to the Log Host?

Featured Answers

Recommended answer

Popeye_Wang
Admin Created Aug 28, 2020 07:29:21

Hello,

For routers,  you can disable the entire syslog sending channel and enable only the independent log channel of the module shell.

undo info-center source default channel 2

info-center source SHELL channel 2 log level notification

Refer to: https://support.huawei.com/hedex/hdx.do?docid=EDOC1100007335&id=info-center_source_channel&lang=en


For switches, there is another ways:  Configure the keyword operation-log to directly output operation logs to the log host,

Run info-center loghost ip-address [ channel { channel-number | channel-name } | facility local-number | language language-name | { vpn-instance vpn-instance-name | public-net } | local-time | log-counter { disable | enable } | port port | security-log | operation-log | { source-ip source-ip-address } | transport { udp | tcp ssl-policy policy-name } ] *

Refer to: https://support.huawei.com/hedex/hdx.do?docid=EDOC1100101074&id=EN-US_CLIREF_0177114160&lang=en



View more
  • x
  • convention:

All Answers

Hello,

For routers,  you can disable the entire syslog sending channel and enable only the independent log channel of the module shell.

undo info-center source default channel 2

info-center source SHELL channel 2 log level notification

Refer to: https://support.huawei.com/hedex/hdx.do?docid=EDOC1100007335&id=info-center_source_channel&lang=en


For switches, there is another ways:  Configure the keyword operation-log to directly output operation logs to the log host,

Run info-center loghost ip-address [ channel { channel-number | channel-name } | facility local-number | language language-name | { vpn-instance vpn-instance-name | public-net } | local-time | log-counter { disable | enable } | port port | security-log | operation-log | { source-ip source-ip-address } | transport { udp | tcp ssl-policy policy-name } ] *

Refer to: https://support.huawei.com/hedex/hdx.do?docid=EDOC1100101074&id=EN-US_CLIREF_0177114160&lang=en



View more
  • x
  • convention:

Hi user can you look into this:

***Configure the sending of syslogs. # Enter the system view.
<NE40/NE80> system-view

# Enable the information center.

[NE40/NE80] info-center enable

# Configure the NE40/NE80 to output the log information of all modules and of the informational level.

[NE40/NE80] info-center source default channel 2 log level informational

# Configure the source interface for sending log information.

[NE40/NE80] info-center loghost source { interface-type interface-number }

# Set the IP address of the log collector so that the NE40/NE80 sends syslogs to the specified log host.

[NE40/NE80] info-center loghost host-ip-address facility local2 language english

Thanks!
View more
  • x
  • convention:

Clear and useful
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.