Junos OS

Expand all | Collapse all

Filter chassisd logs

  • 1.  Filter chassisd logs

    Posted 11-19-2020 03:35
    Hello,

    i try to filter some chassisd logs but it wont work with my filter

    I Try this filters:
    file chassisd {
        match "!/pic type F050 not supported/";
    }
    
    and
    
    file chassisd {
        match "!(.*pic type F050 not supported.*)";
    }
    ​


    The Log i try to filter is:
    Nov 19 09:31:43 pic_create_ifname: 0/0/54 pic type F050 not supported
    Nov 19 09:31:56 pic_create_ifname: 0/0/18 pic type F050 not supported
    Nov 19 09:32:01 pic_create_ifname: 0/0/20 pic type F050 not supported
    Nov 19 09:32:01 pic_create_ifname: 0/0/22 pic type F050 not supported
    Nov 19 09:32:01 pic_create_ifname: 0/0/28 pic type F050 not supported



  • 2.  RE: Filter chassisd logs

     
    Posted 11-19-2020 03:46
    Hello Kev,

    your second mentioned filter is correct, this should work. What I can sometimes observe (platform dependent) is that it needs a rollover of a log file that the filters going active.
    You can try to delete the chassisd file and let JUNOS recreate it. You have a good chance that the filter works afterwards.

    ------------------------------
    ------------------------------
    ------------------------------
    If my answer provides the solution, please mark my post as "Accepted Solution".
    If you think my answer helps, please spend some Kudos
    ------------------------------



  • 3.  RE: Filter chassisd logs

    Posted 11-19-2020 04:21
    Hi Kev1904,


    After you have committed the second filter that you showed do you still see "new" entries in your Log? 
    What Hardware are you trying to apply this filter on?

    ------------------------------
    CHRISTIAN SCHOLZ
    ------------------------------



  • 4.  RE: Filter chassisd logs

    Posted 11-19-2020 04:27
    You can also try if matching the F050 is showing the desired behavior:

    set system syslog file chassisd match "!(.*pic type F050 not supported.*|.*F050.*)"

    Depending on the Version, I've seen that from time to time and adding it a second time finally shows the desired result :)

    ------------------------------
    CHRISTIAN SCHOLZ
    ------------------------------



  • 5.  RE: Filter chassisd logs

    Posted 11-19-2020 05:22
    Hi Christian,

    i try your command above and clear'd the log but still flooding, we are using qfx5120-48y with 19.4R2-S1.2