<?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: Unable to extract fields from source in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355066#M164249</link>
    <description>&lt;P&gt;Thanks, it worked.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;SOURCETYPEHERE&amp;gt;]
  EXTRACT-Customer,Country = C:\\\Web\\\(?&amp;lt;Customer&amp;gt;\w*)\\\(?&amp;lt;Country&amp;gt;\w*) in source

[&amp;lt;SOURCETYPEHERE&amp;gt;]
EXTRACT-Customer,Country = C:\\\Web\\\(?&amp;lt;Customer&amp;gt;\w*)\\\(?&amp;lt;Country&amp;gt;\w*) in source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I used the above, though.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2017 07:08:35 GMT</pubDate>
    <dc:creator>siddharthmis</dc:creator>
    <dc:date>2017-12-22T07:08:35Z</dc:date>
    <item>
      <title>Unable to extract fields from source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355062#M164245</link>
      <description>&lt;P&gt;I have props.conf defined as-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[source::C:\Web\...\...\Web\log\mobile.log]
EXTRACT-Customer,Country = C:\\\Web\\\(?&amp;lt;Customer&amp;gt;\w*)\\\(?&amp;lt;Country&amp;gt;\w*) in source

[source::C:\Web\...\...\Web\log\web.log]
EXTRACT-Customer,Country = C:\\\Web\\\(?&amp;lt;Customer&amp;gt;\w*)\\\(?&amp;lt;Country&amp;gt;\w*) in source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I am still unable to index the two fields. What am I doing wrong?&lt;BR /&gt;
Do I need to make some other changes?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 11:16:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355062#M164245</guid>
      <dc:creator>siddharthmis</dc:creator>
      <dc:date>2017-12-21T11:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract fields from source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355063#M164246</link>
      <description>&lt;P&gt;Hi @siddharthmis&lt;/P&gt;

&lt;P&gt;can you please share your source string&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 12:53:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355063#M164246</guid>
      <dc:creator>abhijeet01</dc:creator>
      <dc:date>2017-12-21T12:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract fields from source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355064#M164247</link>
      <description>&lt;P&gt;Hi siddharthmis,&lt;/P&gt;

&lt;P&gt;you can try rex command on source field: &lt;BR /&gt;
| rex field=source "\w+:\\w+\(?P\w*)\(?P\w*)\.*"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:20:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355064#M164247</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2020-09-29T17:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract fields from source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355065#M164248</link>
      <description>&lt;P&gt;Hello Siddharthmis,&lt;/P&gt;

&lt;P&gt;Your problem is not in the regex, it is in the stanza.&lt;/P&gt;

&lt;P&gt;the stanzas should look like this : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; [source::C:\Web\*\*\Web\log\mobile.log]
 EXTRACT-Customer,Country = C:\\\Web\\\(?&amp;lt;Customer&amp;gt;\w*)\\\(?&amp;lt;Country&amp;gt;\w*) in source

 [source::C:\Web\*\*\Web\log\web.log]
 EXTRACT-Customer,Country = C:\\\Web\\\(?&amp;lt;Customer&amp;gt;\w*)\\\(?&amp;lt;Country&amp;gt;\w*) in source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;please refer to the following question for more details:&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/31643/using-source-for-field-extraction-in-props-conf.html"&gt;https://answers.splunk.com/answers/31643/using-source-for-field-extraction-in-props-conf.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 12:55:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355065#M164248</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2017-12-21T12:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract fields from source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355066#M164249</link>
      <description>&lt;P&gt;Thanks, it worked.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[&amp;lt;SOURCETYPEHERE&amp;gt;]
  EXTRACT-Customer,Country = C:\\\Web\\\(?&amp;lt;Customer&amp;gt;\w*)\\\(?&amp;lt;Country&amp;gt;\w*) in source

[&amp;lt;SOURCETYPEHERE&amp;gt;]
EXTRACT-Customer,Country = C:\\\Web\\\(?&amp;lt;Customer&amp;gt;\w*)\\\(?&amp;lt;Country&amp;gt;\w*) in source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I used the above, though.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 07:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355066#M164249</guid>
      <dc:creator>siddharthmis</dc:creator>
      <dc:date>2017-12-22T07:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to extract fields from source</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355067#M164250</link>
      <description>&lt;P&gt;Great! Please accept and up vote answer &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 08:53:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Unable-to-extract-fields-from-source/m-p/355067#M164250</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2017-12-22T08:53:12Z</dc:date>
    </item>
  </channel>
</rss>

