<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Log target with match reqular expression in ExtremeSwitching (EXOS/Switch Engine)</title>
    <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/log-target-with-match-reqular-expression/m-p/29890#M4977</link>
    <description>&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
I want to send special log events to a separate syslog facility (I want to grep special words in the log message).&lt;BR /&gt;
&lt;BR /&gt;
I thought this can be realized with this command:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;"conf log  target syslog 192.168.1.1  vr "VR-Default" local7 match *&lt;/I&gt;&lt;B&gt;&lt;I&gt;info"&lt;/I&gt;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Where "&lt;B&gt;info&lt;/B&gt;" can be any regex.&lt;BR /&gt;
&lt;BR /&gt;
But I always get: &lt;I&gt;"No targets  were configured as none matched the given criteria!"&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Tested on different XOS-Switches with Version 16.2.1.6 and 16.1.3.6&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Fri, 16 Dec 2016 20:28:00 GMT</pubDate>
    <dc:creator>StephanH</dc:creator>
    <dc:date>2016-12-16T20:28:00Z</dc:date>
    <item>
      <title>Log target with match reqular expression</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/log-target-with-match-reqular-expression/m-p/29890#M4977</link>
      <description>&lt;BR /&gt;
Hello,&lt;BR /&gt;
&lt;BR /&gt;
I want to send special log events to a separate syslog facility (I want to grep special words in the log message).&lt;BR /&gt;
&lt;BR /&gt;
I thought this can be realized with this command:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;"conf log  target syslog 192.168.1.1  vr "VR-Default" local7 match *&lt;/I&gt;&lt;B&gt;&lt;I&gt;info"&lt;/I&gt;&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Where "&lt;B&gt;info&lt;/B&gt;" can be any regex.&lt;BR /&gt;
&lt;BR /&gt;
But I always get: &lt;I&gt;"No targets  were configured as none matched the given criteria!"&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
Tested on different XOS-Switches with Version 16.2.1.6 and 16.1.3.6&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Stephan&lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Dec 2016 20:28:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/log-target-with-match-reqular-expression/m-p/29890#M4977</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2016-12-16T20:28:00Z</dc:date>
    </item>
    <item>
      <title>RE: Log target with match reqular expression</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/log-target-with-match-reqular-expression/m-p/29891#M4978</link>
      <description>Here a basic syslog setup of my switch - could you post your syslog configuration or did you only use that one command....&lt;BR /&gt;
&lt;BR /&gt;
&lt;P class="fancybox-image"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="470baf24ca364b2d8fa721ac8658036e_RackMultipart20161216-46539-1v2fkhr-XOS_syslog1_inline.png"&gt;&lt;img src="https://community.extremenetworks.com/t5/image/serverpage/image-id/3489i85062BD17C7FA046/image-size/large?v=v2&amp;amp;px=999" role="button" title="470baf24ca364b2d8fa721ac8658036e_RackMultipart20161216-46539-1v2fkhr-XOS_syslog1_inline.png" alt="470baf24ca364b2d8fa721ac8658036e_RackMultipart20161216-46539-1v2fkhr-XOS_syslog1_inline.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Dec 2016 20:51:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/log-target-with-match-reqular-expression/m-p/29891#M4978</guid>
      <dc:creator>Ronald_Dvorak</dc:creator>
      <dc:date>2016-12-16T20:51:00Z</dc:date>
    </item>
    <item>
      <title>RE: Log target with match reqular expression</title>
      <link>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/log-target-with-match-reqular-expression/m-p/29892#M4979</link>
      <description>Hello Ron,&lt;BR /&gt;
&lt;BR /&gt;
sometimes one cannot see the wood for the trees.&lt;BR /&gt;
&lt;BR /&gt;
The local7 sould be local1.&lt;BR /&gt;
&lt;BR /&gt;
I saw it with your command: "sh log conf target syslog"&lt;BR /&gt;
&lt;BR /&gt;
Now it works:&lt;BR /&gt;
&lt;BR /&gt;
Here what I configured:&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;ena  cli-config-logging&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;I&gt;sh config | i syslog&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;configure syslog add 192.168.1.1:514 vr VR-Default local1&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;enable log target syslog 192.168.1.1:514 vr VR-Default local1&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;configure log target syslog 192.168.1.1:514 vr VR-Default local1 filter DefaultFilter severity Debug-Data&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;configure log target syslog 192.168.1.1:514 vr VR-Default local1 &lt;B&gt;match facility&lt;/B&gt;&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;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&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;configure syslog add 192.168.1.1:514 vr VR-Default local7&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;enable log target syslog 192.168.1.1:514 vr VR-Default local7&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;configure log target syslog 192.168.1.1:514 vr VR-Default local7 filter DefaultFilter severity Debug-Data&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;configure log target syslog 192.168.1.1:514 vr VR-Default local7 &lt;B&gt;match Any&lt;/B&gt;&lt;/I&gt;&lt;BR /&gt;
&lt;I&gt;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&lt;/I&gt;&lt;BR /&gt;
&lt;BR /&gt;
and what I got:&lt;BR /&gt;
&lt;BR /&gt;
If I "create vlan facility" I receive two syslog messages one for &lt;B&gt;match facility&lt;/B&gt; and one for &lt;B&gt;match any&lt;/B&gt;&lt;BR /&gt;
If I "create vlan test" I received one syslog message for &lt;B&gt;match any&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
That's  what I want.&lt;BR /&gt;
&lt;BR /&gt;
Thank you Ron &lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Fri, 16 Dec 2016 21:51:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/extremeswitching-exos-switch/log-target-with-match-reqular-expression/m-p/29892#M4979</guid>
      <dc:creator>StephanH</dc:creator>
      <dc:date>2016-12-16T21:51:00Z</dc:date>
    </item>
  </channel>
</rss>

