ExtremeSwitching (EXOS)

  • 1.  Log target with match reqular expression

    Posted 12-16-2016 12:28

    Hello,

    I want to send special log events to a separate syslog facility (I want to grep special words in the log message).

    I thought this can be realized with this command:

    "conf log target syslog 192.168.1.1 vr "VR-Default" local7 match *info"

    Where "info" can be any regex.

    But I always get: "No targets were configured as none matched the given criteria!"

    Tested on different XOS-Switches with Version 16.2.1.6 and 16.1.3.6

    Any ideas?

    Best regards
    Stephan



  • 2.  RE: Log target with match reqular expression

    Posted 12-16-2016 12:51
    Here a basic syslog setup of my switch - could you post your syslog configuration or did you only use that one command....




  • 3.  RE: Log target with match reqular expression

    Posted 12-16-2016 13:51
    Hello Ron,

    sometimes one cannot see the wood for the trees.

    The local7 sould be local1.

    I saw it with your command: "sh log conf target syslog"

    Now it works:

    Here what I configured:

    ena cli-config-logging

    sh config | i syslog
    configure syslog add 192.168.1.1:514 vr VR-Default local1
    enable log target syslog 192.168.1.1:514 vr VR-Default local1
    configure log target syslog 192.168.1.1:514 vr VR-Default local1 filter DefaultFilter severity Debug-Data
    configure log target syslog 192.168.1.1:514 vr VR-Default local1 match facility
    configure log target syslog 192.168.1.1:514 vr VR-Default local1 format timestamp seconds date Mmm-dd event-name none priority host-name tag-name
    configure syslog add 192.168.1.1:514 vr VR-Default local7
    enable log target syslog 192.168.1.1:514 vr VR-Default local7
    configure log target syslog 192.168.1.1:514 vr VR-Default local7 filter DefaultFilter severity Debug-Data
    configure log target syslog 192.168.1.1:514 vr VR-Default local7 match Any
    configure log target syslog 192.168.1.1:514 vr VR-Default local7 format timestamp seconds date Mmm-dd event-name none priority host-name tag-name

    and what I got:

    If I "create vlan facility" I receive two syslog messages one for match facility and one for match any
    If I "create vlan test" I received one syslog message for match any

    That's what I want.

    Thank you Ron