<?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 Re: Field Extraction : regex works fine with search using &amp;quot;rex&amp;quot; command but not with Field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548779#M155688</link>
    <description>&lt;P&gt;Only "RULE_NAME" seems to be correctly extracted by default (see attachment), i don't know why...&lt;/P&gt;</description>
    <pubDate>Wed, 21 Apr 2021 13:08:19 GMT</pubDate>
    <dc:creator>Flo-Paris</dc:creator>
    <dc:date>2021-04-21T13:08:19Z</dc:date>
    <item>
      <title>Field Extraction : regex works fine with search using "rex" command but not with Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548777#M155686</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to analyze WatchGuard firewall logs received by Splunk using syslog on udp 514 port.&lt;/P&gt;&lt;P&gt;I was able to find a well working regex to use in a search using the following rex command in order to extract needed fields :&lt;/P&gt;&lt;P&gt;*&lt;BR /&gt;| rex field=_raw ".*\s(?&amp;lt;HOSTNAME&amp;gt;\S+)\s(?&amp;lt;PROCESS&amp;gt;\S+):\s.*\s(?&amp;lt;DISPOSITION&amp;gt;(Allow|Deny))\s(?&amp;lt;SRC_INT&amp;gt;\S+)\s(?&amp;lt;DST_INT&amp;gt;\S+)\s.*(?&amp;lt;PR&amp;gt;(icmp|igmp|tcp|udp)).*\s(?&amp;lt;SRC_IP&amp;gt;[[octet]](?:\.[[octet]]){3})\s(?&amp;lt;DST_IP&amp;gt;[[octet]](?:\.[[octet]]){3})\s(?&amp;lt;SRC_PORT&amp;gt;\d{1,5})\s(?&amp;lt;DST_PORT&amp;gt;\d{1,5})\s.*\((?P&amp;lt;RULE_NAME&amp;gt;.*)?(-00)\)$"&lt;BR /&gt;| table HOSTNAME,PROCESS,DISPOSITION,SRC_INT,DST_INT,PR,SRC_IP,DST_IP,SRC_PORT,DST_PORT,RULE_NAME&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Result is a table as we can see in attachment.&lt;/P&gt;&lt;P&gt;Now, in order to optimize all of that, i would like to be able to extract all these fields automatically without having the need to use a rex command in each search i run...&lt;/P&gt;&lt;P&gt;i tryed using the Splunk Field extraction wizard, both using the automatic regex generator and by copy paste my search regex, but no success...&lt;/P&gt;&lt;P&gt;i suppose i missed something somewhere ?&lt;/P&gt;&lt;P&gt;thanks for your help&lt;/P&gt;&lt;P&gt;Florent&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 13:03:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548777#M155686</guid>
      <dc:creator>Flo-Paris</dc:creator>
      <dc:date>2021-04-21T13:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction : regex works fine with search using "rex" command but not with Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548778#M155687</link>
      <description>&lt;P&gt;Exemple of original log received :&lt;/P&gt;&lt;P&gt;&lt;SPAN class="t"&gt;Apr&lt;/SPAN&gt; &lt;SPAN class="t"&gt;21&lt;/SPAN&gt; &lt;SPAN class="t"&gt;15:04:33&lt;/SPAN&gt; &lt;SPAN class="t"&gt;10.40.1.254&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Apr&lt;/SPAN&gt; &lt;SPAN class="t"&gt;21&lt;/SPAN&gt; &lt;SPAN class="t"&gt;15:04:33&lt;/SPAN&gt; &lt;SPAN class="t"&gt;FRPARXXX0001.mydomain.local&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN class="t"&gt;firewall:&lt;/SPAN&gt; &lt;SPAN class="t"&gt;msg_id=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;3000-0151&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;SPAN class="t"&gt;Allow&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Firebox&lt;/SPAN&gt; &lt;SPAN class="t"&gt;EXT-FIBER-XXX-100&lt;/SPAN&gt; &lt;SPAN class="t"&gt;udp&lt;/SPAN&gt; &lt;SPAN class="t"&gt;1XX.XXX.XXX.1&lt;/SPAN&gt; &lt;SPAN class="t"&gt;1.XXX.XXX.10&lt;/SPAN&gt; &lt;SPAN class="t"&gt;39010&lt;/SPAN&gt; &lt;SPAN class="t"&gt;53&lt;/SPAN&gt; &lt;SPAN class="t"&gt;dst_user=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;administrator@mydomain.local&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;SPAN class="t"&gt;duration=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;32&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;SPAN class="t"&gt;sent_bytes=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;68&lt;/SPAN&gt;&lt;SPAN&gt;" &lt;/SPAN&gt;&lt;SPAN class="t"&gt;rcvd_bytes=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN class="t"&gt;128&lt;/SPAN&gt;&lt;SPAN&gt;" (&lt;/SPAN&gt;&lt;SPAN class="t"&gt;Any&lt;/SPAN&gt; &lt;SPAN class="t"&gt;From&lt;/SPAN&gt; &lt;SPAN class="t"&gt;Firebox-00)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 13:06:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548778#M155687</guid>
      <dc:creator>Flo-Paris</dc:creator>
      <dc:date>2021-04-21T13:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction : regex works fine with search using "rex" command but not with Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548779#M155688</link>
      <description>&lt;P&gt;Only "RULE_NAME" seems to be correctly extracted by default (see attachment), i don't know why...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 13:08:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548779#M155688</guid>
      <dc:creator>Flo-Paris</dc:creator>
      <dc:date>2021-04-21T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction : regex works fine with search using "rex" command but not with Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548780#M155689</link>
      <description>&lt;P&gt;Even if Splunk field extraction wizard seems to match my fields already...&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 13:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548780#M155689</guid>
      <dc:creator>Flo-Paris</dc:creator>
      <dc:date>2021-04-21T13:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction : regex works fine with search using "rex" command but not with Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548782#M155691</link>
      <description>&lt;P&gt;Here are my existing Field Extractions in the Splunk Settings / Fields / Field Extractions menu&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 13:17:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-Extraction-regex-works-fine-with-search-using-quot-rex/m-p/548782#M155691</guid>
      <dc:creator>Flo-Paris</dc:creator>
      <dc:date>2021-04-21T13:17:46Z</dc:date>
    </item>
  </channel>
</rss>

