www.zeroshell.org Forum Index www.zeroshell.org
Linux Distribution for server and embedded devices
 
 SearchSearch  RegisterRegister  UsergroupsUsergroups 
 ProfileProfile  Log inLog in  Log in to check your private messagesPrivate Message 

syslog: how to discard unwanted messages?

 
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell
View previous topic :: View next topic  
Author Message
r1vver



Joined: 09 Apr 2010
Posts: 19

PostPosted: Thu Nov 05, 2015 8:46 am    Post subject: syslog: how to discard unwanted messages? Reply with quote

I'm still fighting with my Sun QFE NIC.
It's driver have very nice "feature" to spam every 10 timer ticks (or so) messages "Auto-Negotiation unsuccessful, trying force link mode" and "Link down, cable problem?" to log if there is no connection on port.
May be it's very useful for some testing purposes, but...

So, i want to filter and discard those 2 messages from log.

I was able to edit /root/kerbynet.cgi/template.cfg/syslog.conf:
Code:
root@zeroshell syslog> cat /root/kerbynet.cgi/template.cfg/syslog.conf
/etc/syslog.conf
:msg, contains, "Auto-Negotiation unsuccessful, trying force link mode" ~
:msg, contains, "Link down, cable problem?" ~
*.* |/tmp/logpipe
<xvar /system/logs/SyslogServerConf>

so now /etc/syslog.conf is look like:
Code:
root@zeroshell syslog> cat /etc/syslog.conf
:msg, contains, "Auto-Negotiation unsuccessful, trying force link mode" ~
:msg, contains, "Link down, cable problem?" ~
*.* |/tmp/logpipe

But i still get those messages in log:
Code:
[ 1107.650056] ETH00: Auto-Negotiation unsuccessful, trying force link mode
[ 1107.690056] ETH01: Auto-Negotiation unsuccessful, trying force link mode
[ 1107.720056] ETH02: Auto-Negotiation unsuccessful, trying force link mode
[ 1117.250144] ETH00: Link down, cable problem?
[ 1117.290144] ETH01: Link down, cable problem?
[ 1117.320141] ETH02: Link down, cable problem?
[ 1129.250055] ETH00: Auto-Negotiation unsuccessful, trying force link mode
[ 1129.290053] ETH01: Auto-Negotiation unsuccessful, trying force link mode
[ 1129.320052] ETH02: Auto-Negotiation unsuccessful, trying force link mode
[ 1138.850146] ETH00: Link down, cable problem?
[ 1138.890143] ETH01: Link down, cable problem?
[ 1138.920141] ETH02: Link down, cable problem?


How to "fix" it right way?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    www.zeroshell.org Forum Index -> ZeroShell All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group