<?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: Multiple fields extraction,m using props.conf in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351902#M64529</link>
    <description>&lt;P&gt;I tried that as well, but it doesn't work&lt;/P&gt;</description>
    <pubDate>Thu, 21 Dec 2017 12:56:03 GMT</pubDate>
    <dc:creator>edwinmae</dc:creator>
    <dc:date>2017-12-21T12:56:03Z</dc:date>
    <item>
      <title>Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351898#M64525</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;We have a search that extracts Customer and Country correctly&lt;/P&gt;

&lt;P&gt;index=aaa host="&lt;EM&gt;Host1&lt;/EM&gt;" sourcetype=aaa_bbb  | rex field=source "C:\\DIR\(?\w*)\(?\w*)" | table source,Customer,Country&lt;/P&gt;

&lt;P&gt;source example = C:\DIR\CustomerX\CountryX\Web\log\2017-12-bbb.log&lt;/P&gt;

&lt;P&gt;--&lt;/P&gt;

&lt;P&gt;Now we want to use props.conf for extracting these 2 fields&lt;/P&gt;

&lt;P&gt;When modifying the props.conf on the Splunk server (/opt/splunk/etc/system/local/props.conf)&lt;/P&gt;

&lt;P&gt;[aaa_bbb]&lt;BR /&gt;
EXTRACT-Customer,Country = C:\\DIR\(?\w*)\(?\w*) in source&lt;/P&gt;

&lt;P&gt;After rebooting the server the fields are not there  (we tried different options, none seem to work)&lt;/P&gt;

&lt;P&gt;Please advise how we could extract these fields 'automatically' using props.conf&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;/Edwin&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351898#M64525</guid>
      <dc:creator>edwinmae</dc:creator>
      <dc:date>2020-09-29T17:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351899#M64526</link>
      <description>&lt;P&gt;Your not specifying the extracted field names&lt;/P&gt;

&lt;P&gt;try:&lt;BR /&gt;
&lt;CODE&gt;EXTRACT-Customer,Country = C:\\\DIR\\(?&amp;lt;customer&amp;gt;\w*)\\(?&amp;lt;country&amp;gt;\w*) in source&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 11:57:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351899#M64526</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-21T11:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351900#M64527</link>
      <description>&lt;P&gt;Hi @edwinmae&lt;/P&gt;

&lt;P&gt;PFA  &lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4027i54234CD0360759C6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
You can use this regex in props.conf file.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 12:48:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351900#M64527</guid>
      <dc:creator>abhijeet01</dc:creator>
      <dc:date>2017-12-21T12:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351901#M64528</link>
      <description>&lt;P&gt;Something went wrong with copying. my apologies&lt;BR /&gt;
The normal search is working and get the source, Customer and County, but not through props.conf&lt;/P&gt;

&lt;P&gt;So I had the below in props.conf, but it doesn't work&lt;/P&gt;

&lt;P&gt;[aaa_bbb]&lt;BR /&gt;
EXTRACT-Customer,Country = C:\\TEM\(?\w*)\(?\w*) in source&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:20:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351901#M64528</guid>
      <dc:creator>edwinmae</dc:creator>
      <dc:date>2020-09-29T17:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351902#M64529</link>
      <description>&lt;P&gt;I tried that as well, but it doesn't work&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 12:56:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351902#M64529</guid>
      <dc:creator>edwinmae</dc:creator>
      <dc:date>2017-12-21T12:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351903#M64530</link>
      <description>&lt;P&gt;oh wait ! i think there are too many \\'s &lt;/P&gt;

&lt;P&gt;try&lt;BR /&gt;
&lt;CODE&gt;EXTRACT-Customer,Country = C:\\DIR\\(?&amp;lt;customer&amp;gt;\w*)\\(?&amp;lt;country&amp;gt;\w*) in source&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:00:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351903#M64530</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-21T13:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351904#M64531</link>
      <description>&lt;P&gt;still not working  for me&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:08:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351904#M64531</guid>
      <dc:creator>edwinmae</dc:creator>
      <dc:date>2017-12-21T13:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351905#M64532</link>
      <description>&lt;P&gt;whats the stanza named?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:10:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351905#M64532</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-21T13:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351906#M64533</link>
      <description>&lt;P&gt;I just came across your other post.&lt;/P&gt;

&lt;P&gt;Can you confirm this is exactly what you have?&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 say 'exactly', because although windows is not case sensitive, Splunk on windows is!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 13:49:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351906#M64533</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-21T13:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351907#M64534</link>
      <description>&lt;P&gt;I have another post?&lt;/P&gt;

&lt;P&gt;We also tried using the props.conf from the Splunk Forwarder (on the web server)&lt;/P&gt;

&lt;P&gt;[source::C:\DIR......\Web\log*bbb.log]&lt;BR /&gt;
EXTRACT-Customer,Country = C:\\DIR\(?\w*)\(?\w*) in source&lt;/P&gt;

&lt;P&gt;--&lt;/P&gt;

&lt;P&gt;The inputs.conf (on the web server) looks like this:&lt;/P&gt;

&lt;P&gt;[monitor://C:\DIR**\Web\log*bbb.log]&lt;BR /&gt;
disabled = 0&lt;BR /&gt;
ignoreOlderThan = 3d&lt;BR /&gt;
followTail = 0&lt;BR /&gt;
sourcetype = aaa_bbb&lt;BR /&gt;
crcSalt = &lt;BR /&gt;
index = aaa&lt;/P&gt;

&lt;P&gt;--&lt;/P&gt;

&lt;P&gt;The props.conf file on the Splunk server&lt;/P&gt;

&lt;P&gt;stanza = aaa_bbb (=sourcetype)&lt;/P&gt;

&lt;P&gt;[aaa_bbb]&lt;BR /&gt;
EXTRACT-Customer,Country = C:\DIR\(?\w*)\(?\w*) in source&lt;/P&gt;

&lt;H2&gt;tried with \\ and \&lt;/H2&gt;

&lt;P&gt;Using normal search with rex works fine &lt;/P&gt;

&lt;P&gt;index=aaa  sourcetype=aaa_bbb | rex field=source "C:\\DIR\(?\w*)\(?\w*)" | table source,Customer,Country&lt;/P&gt;

&lt;P&gt;--&lt;/P&gt;

&lt;P&gt;Unfortunately the props.conf doesn't work&lt;/P&gt;

&lt;P&gt;We use Splunk 7.0.0 (Server and Forwarder)&lt;/P&gt;

&lt;P&gt;the source = Log path is same for all Customers:&lt;BR /&gt;
C:\DIR\Customer\Country\Web\log\2017-12-bbb-log&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351907#M64534</guid>
      <dc:creator>edwinmae</dc:creator>
      <dc:date>2020-09-29T17:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351908#M64535</link>
      <description>&lt;P&gt;Hi @edwinmae,&lt;/P&gt;

&lt;P&gt;I have tried with below configuration in props.conf in splunk 7.0.1&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[custom_st]
EXTRACT-Country,Customer = C:\\DIR\\(?&amp;lt;Customer&amp;gt;\w*)\\(?&amp;lt;Country&amp;gt;\w*) in source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And it's working fine with sample data which you have provided, please find below screenshot in which Country and Customer field is extracted properly.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4031iE83854395E224480/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 17:54:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351908#M64535</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-12-21T17:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple fields extraction,m using props.conf</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351909#M64536</link>
      <description>&lt;P&gt;It worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 05:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Multiple-fields-extraction-m-using-props-conf/m-p/351909#M64536</guid>
      <dc:creator>edwinmae</dc:creator>
      <dc:date>2017-12-22T05:04:09Z</dc:date>
    </item>
  </channel>
</rss>

