Jump to content
Калькуляторы

syslog + 3528

Ребята подскажите пожалуйста, как сделать так чтобы логи скидывались в отдельный файл.

 

пока все пишется в all.log

 

cat syslog.conf

 

+*192.168

*.* /var/log/switch.log

 

 

 

 

 

Вот что пишу на коммутаторе

 

en syslog

create syslog host 1 ip 192.168.255.251

config syslog host 1 state enable

conf syslog host 1 st en

conf syslog host 1 se c

Share this post


Link to post
Share on other sites

local5.* /var/log/dlink-all.log

 

 

# SYSLOG

 

config log_save_timing on_demand

enable syslog

config system_severity trap information

config system_severity log information

create syslog host 1 ipaddress xx.xx.xx.xx severity informational facility local5 udp_port 514 state enable

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.