syslog: how to discard unwanted messages?

Home Page Forums Network Management ZeroShell syslog: how to discard unwanted messages?

This topic contains 1 reply, has 0 voices, and was last updated by  r1vver 3 years, 3 months ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #44434

    r1vver
    Participant

    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:

    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

    so now /etc/syslog.conf is look like:

    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:

    [ 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?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.