<?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: Why does this field extraction and rex give different results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-field-extraction-and-rex-give-different-results/m-p/597427#M207993</link>
    <description>&lt;P class="lia-align-justify"&gt;That (almost) did it! I had to replace \S with \N so that it wouldn't stop at spaces in paths, like "C:\Program Files".&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Thanks much!&lt;/P&gt;</description>
    <pubDate>Wed, 11 May 2022 15:06:40 GMT</pubDate>
    <dc:creator>tfilip</dc:creator>
    <dc:date>2022-05-11T15:06:40Z</dc:date>
    <item>
      <title>Why does this field extraction and rex give different results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-field-extraction-and-rex-give-different-results/m-p/597240#M207922</link>
      <description>&lt;P&gt;I'm completely stuck here. I'm trying to extract the "Path" from a logfile with this format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Time:	 05/10/2022 11:26:53
Event:  Traffic
IP Address:  xxxxxxxxxx
Description:  HOST PROCESS FOR WINDOWS SERVICES
Path:  C:\Windows\System32\svchost.exe
Message:      Blocked Incoming UDP  -  Source  xxxxxxxxxx :  (xxxx)   Destination  xxxxxxxxxx :  (xxxxx)
Matched Rule:  Block all traffic&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using this regex&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;((Path:\s{1,2})(?&amp;lt;fwpath&amp;gt;.+))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does exactly what I want when I use rex, it extracts the path as "fwpath". However, when I do it as a field extraction, it matches the rest of the log entry. Why is it behaving differently for these two?&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 20:21:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-field-extraction-and-rex-give-different-results/m-p/597240#M207922</guid>
      <dc:creator>tfilip</dc:creator>
      <dc:date>2022-05-10T20:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this field extraction and rex give different results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-field-extraction-and-rex-give-different-results/m-p/597266#M207933</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;((Path:\s{1,2})(?&amp;lt;fwpath&amp;gt;\S+))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 10 May 2022 22:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-field-extraction-and-rex-give-different-results/m-p/597266#M207933</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-05-10T22:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why does this field extraction and rex give different results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-does-this-field-extraction-and-rex-give-different-results/m-p/597427#M207993</link>
      <description>&lt;P class="lia-align-justify"&gt;That (almost) did it! I had to replace \S with \N so that it wouldn't stop at spaces in paths, like "C:\Program Files".&lt;/P&gt;&lt;P class="lia-align-justify"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Thanks much!&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2022 15:06:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-does-this-field-extraction-and-rex-give-different-results/m-p/597427#M207993</guid>
      <dc:creator>tfilip</dc:creator>
      <dc:date>2022-05-11T15:06:40Z</dc:date>
    </item>
  </channel>
</rss>

