<?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 Help with LSX XML File - Fortiweb 400C UDSM in Scripting</title>
    <link>https://community.extremenetworks.com/t5/scripting/help-with-lsx-xml-file-fortiweb-400c-udsm/m-p/20655#M265</link>
    <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
I'm in the process of defining a LSX for FortiWeb device, which are current shown as &lt;B&gt;unknown&lt;/B&gt; (UDSM) by Qradar.&lt;BR /&gt;
&lt;BR /&gt;
Fortiweb 400C&lt;BR /&gt;
&lt;BR /&gt;
Serial Number FV400C3M13000193&lt;BR /&gt;
&lt;BR /&gt;
Firmware Version FortiWeb-400C 5.06,build0091,140212&lt;BR /&gt;
&lt;BR /&gt;
Here is the XML file: &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;!--&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Author:                 Acuntia COS &lt;cos@acuntia.es&gt;&lt;br /&gt;
&lt;br /&gt;
Device Type:            Fortiweb 400C (FortiNet)&lt;br /&gt;
&lt;br /&gt;
Device Version:         5.06,build0091,140212&lt;br /&gt;
&lt;br /&gt;
Protocol:               Syslog&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
--&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;DEVICE-EXTENSION xmlns="event_parsing/device_extension"&gt;&lt;BR /&gt;
&lt;BR /&gt;
      &lt;!-- Do not remove the "allEventNames" value --&gt;&lt;BR /&gt;
&lt;BR /&gt;
      (.*)&lt;/DEVICE-EXTENSION&gt;&lt;BR /&gt;
&lt;BR /&gt;
      &lt;!-- Everything below this line can be modified --&gt;&lt;BR /&gt;
&lt;BR /&gt;
      EventName" xmlns=""&amp;gt;\smsg\=\s.*?\s&lt;BR /&gt;
&lt;BR /&gt;
      SourceIp" xmlns=""&amp;gt;\ssrc\=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s&lt;BR /&gt;
&lt;BR /&gt;
      SourcePort" xmlns=""&amp;gt;\ssrc_port\=\d{1,5}\s&lt;BR /&gt;
&lt;BR /&gt;
      DestinationIp" xmlns=""&amp;gt;\sdst\=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s&lt;BR /&gt;
&lt;BR /&gt;
      DestinationPort" xmlns=""&amp;gt;\sdst_port\=\d{1,5}\s&lt;BR /&gt;
&lt;BR /&gt;
      Protocol" case-insensitive="true" xmlns=""&amp;gt;\sproto\=(tcp|udp|icmp|gre)\s&lt;BR /&gt;
&lt;BR /&gt;
      &lt;MATCH-GROUP order="1" description="Log Source Extension" xmlns=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;EventName&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;EventName&amp;lt;/b&amp;gt;" capture-group="1" enable-substitutions="false"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;SourceIp&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;SourceIp&amp;lt;/b&amp;gt;" capture-group="1"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;SourcePort&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;SourcePort&amp;lt;/b&amp;gt;" capture-group="1"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;DestinationIp&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;DestinationIp&amp;lt;/b&amp;gt;" capture-group="1"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;DestinationPort&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;DestinationPort&amp;lt;/b&amp;gt;" capture-group="1"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;Protocol&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;Protocol&amp;lt;/b&amp;gt;" capture-group="1"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;EVENT-MATCH-MULTIPLE pattern-id="allEventNames" capture-group-index="1" device-event-category="unknown" send-identity="OverrideAndNeverSend"&gt;&lt;/EVENT-MATCH-MULTIPLE&gt;&lt;BR /&gt;
&lt;BR /&gt;
      &lt;/MATCH-GROUP&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
It does not work. What am I doing wrong?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;</description>
    <pubDate>Wed, 25 Feb 2015 01:04:00 GMT</pubDate>
    <dc:creator>cos</dc:creator>
    <dc:date>2015-02-25T01:04:00Z</dc:date>
    <item>
      <title>Help with LSX XML File - Fortiweb 400C UDSM</title>
      <link>https://community.extremenetworks.com/t5/scripting/help-with-lsx-xml-file-fortiweb-400c-udsm/m-p/20655#M265</link>
      <description>Hi, &lt;BR /&gt;
&lt;BR /&gt;
I'm in the process of defining a LSX for FortiWeb device, which are current shown as &lt;B&gt;unknown&lt;/B&gt; (UDSM) by Qradar.&lt;BR /&gt;
&lt;BR /&gt;
Fortiweb 400C&lt;BR /&gt;
&lt;BR /&gt;
Serial Number FV400C3M13000193&lt;BR /&gt;
&lt;BR /&gt;
Firmware Version FortiWeb-400C 5.06,build0091,140212&lt;BR /&gt;
&lt;BR /&gt;
Here is the XML file: &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;!--&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
Author:                 Acuntia COS &lt;cos@acuntia.es&gt;&lt;br /&gt;
&lt;br /&gt;
Device Type:            Fortiweb 400C (FortiNet)&lt;br /&gt;
&lt;br /&gt;
Device Version:         5.06,build0091,140212&lt;br /&gt;
&lt;br /&gt;
Protocol:               Syslog&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
--&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;DEVICE-EXTENSION xmlns="event_parsing/device_extension"&gt;&lt;BR /&gt;
&lt;BR /&gt;
      &lt;!-- Do not remove the "allEventNames" value --&gt;&lt;BR /&gt;
&lt;BR /&gt;
      (.*)&lt;/DEVICE-EXTENSION&gt;&lt;BR /&gt;
&lt;BR /&gt;
      &lt;!-- Everything below this line can be modified --&gt;&lt;BR /&gt;
&lt;BR /&gt;
      EventName" xmlns=""&amp;gt;\smsg\=\s.*?\s&lt;BR /&gt;
&lt;BR /&gt;
      SourceIp" xmlns=""&amp;gt;\ssrc\=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s&lt;BR /&gt;
&lt;BR /&gt;
      SourcePort" xmlns=""&amp;gt;\ssrc_port\=\d{1,5}\s&lt;BR /&gt;
&lt;BR /&gt;
      DestinationIp" xmlns=""&amp;gt;\sdst\=\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s&lt;BR /&gt;
&lt;BR /&gt;
      DestinationPort" xmlns=""&amp;gt;\sdst_port\=\d{1,5}\s&lt;BR /&gt;
&lt;BR /&gt;
      Protocol" case-insensitive="true" xmlns=""&amp;gt;\sproto\=(tcp|udp|icmp|gre)\s&lt;BR /&gt;
&lt;BR /&gt;
      &lt;MATCH-GROUP order="1" description="Log Source Extension" xmlns=""&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;EventName&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;EventName&amp;lt;/b&amp;gt;" capture-group="1" enable-substitutions="false"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;SourceIp&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;SourceIp&amp;lt;/b&amp;gt;" capture-group="1"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;SourcePort&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;SourcePort&amp;lt;/b&amp;gt;" capture-group="1"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;DestinationIp&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;DestinationIp&amp;lt;/b&amp;gt;" capture-group="1"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;DestinationPort&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;DestinationPort&amp;lt;/b&amp;gt;" capture-group="1"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;MATCHER field="&amp;lt;b&amp;gt;Protocol&amp;lt;/b&amp;gt;" order="1" pattern-id="&amp;lt;b&amp;gt;Protocol&amp;lt;/b&amp;gt;" capture-group="1"&gt;&lt;/MATCHER&gt;&lt;BR /&gt;
&lt;BR /&gt;
            &lt;EVENT-MATCH-MULTIPLE pattern-id="allEventNames" capture-group-index="1" device-event-category="unknown" send-identity="OverrideAndNeverSend"&gt;&lt;/EVENT-MATCH-MULTIPLE&gt;&lt;BR /&gt;
&lt;BR /&gt;
      &lt;/MATCH-GROUP&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;
It does not work. What am I doing wrong?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Feb 2015 01:04:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/help-with-lsx-xml-file-fortiweb-400c-udsm/m-p/20655#M265</guid>
      <dc:creator>cos</dc:creator>
      <dc:date>2015-02-25T01:04:00Z</dc:date>
    </item>
    <item>
      <title>RE: Help with LSX XML File - Fortiweb 400C UDSM</title>
      <link>https://community.extremenetworks.com/t5/scripting/help-with-lsx-xml-file-fortiweb-400c-udsm/m-p/20656#M266</link>
      <description>Hi cos, I am working on something similar.&lt;BR /&gt;
All I did was looked for a unique pattern  for the EVENT NAME field. If that matches correctly, all other fields are parsed as expected.</description>
      <pubDate>Fri, 05 May 2017 12:11:00 GMT</pubDate>
      <guid>https://community.extremenetworks.com/t5/scripting/help-with-lsx-xml-file-fortiweb-400c-udsm/m-p/20656#M266</guid>
      <dc:creator>Aman_Ankit</dc:creator>
      <dc:date>2017-05-05T12:11:00Z</dc:date>
    </item>
  </channel>
</rss>

