<?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 How to extract multiple fields using the Extract property in props.conf? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362407#M66065</link>
    <description>&lt;P&gt;So I'm trying to extract multiple fields using the Extract property in props.conf&lt;BR /&gt;
The source file looks like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my.prop.1=1
my.prop.2=2
my.prop.3=3
my.prop.4=4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I want what &lt;STRONG&gt;EACH&lt;/STRONG&gt; prop becomes a field. &lt;STRONG&gt;HENCE&lt;/STRONG&gt; I did not used a prefix in the regex.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
LINE_BREAKER = ((?!))
DATETIME_CONFIG=CURRENT
TRUNCATE=100000
KV_MODE = none
EXTRACT-watt_grouping = (?m)(.+?)=(.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I already used multiple variations of this regex and nothing seems to work. Is there anything blocking the field extraction ?&lt;/P&gt;

&lt;P&gt;EDIT:&lt;BR /&gt;
At search time I provided the conrresponding  pipe and it seems to extract quite nicely: &lt;CODE&gt;| extract pairdelim=",", kvdelim="=", auto=f, limit=500, mv_add=t&lt;/CODE&gt; .. Anyone knows how to make this work in transforms.conf  ? I tried it with &lt;CODE&gt;DELIMS = "\n","="&lt;/CODE&gt; but it breaks in a specific property &lt;CODE&gt;prop.256 = ?'- \#&amp;amp;@^\!%*\:$./\&lt;/CODE&gt;;,~+=)(|}{][&amp;gt;&amp;lt;` .. It extracts the previous 255 props quite nicely though&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2018 18:22:19 GMT</pubDate>
    <dc:creator>greggz</dc:creator>
    <dc:date>2018-02-08T18:22:19Z</dc:date>
    <item>
      <title>How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362407#M66065</link>
      <description>&lt;P&gt;So I'm trying to extract multiple fields using the Extract property in props.conf&lt;BR /&gt;
The source file looks like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;my.prop.1=1
my.prop.2=2
my.prop.3=3
my.prop.4=4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And I want what &lt;STRONG&gt;EACH&lt;/STRONG&gt; prop becomes a field. &lt;STRONG&gt;HENCE&lt;/STRONG&gt; I did not used a prefix in the regex.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
LINE_BREAKER = ((?!))
DATETIME_CONFIG=CURRENT
TRUNCATE=100000
KV_MODE = none
EXTRACT-watt_grouping = (?m)(.+?)=(.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I already used multiple variations of this regex and nothing seems to work. Is there anything blocking the field extraction ?&lt;/P&gt;

&lt;P&gt;EDIT:&lt;BR /&gt;
At search time I provided the conrresponding  pipe and it seems to extract quite nicely: &lt;CODE&gt;| extract pairdelim=",", kvdelim="=", auto=f, limit=500, mv_add=t&lt;/CODE&gt; .. Anyone knows how to make this work in transforms.conf  ? I tried it with &lt;CODE&gt;DELIMS = "\n","="&lt;/CODE&gt; but it breaks in a specific property &lt;CODE&gt;prop.256 = ?'- \#&amp;amp;@^\!%*\:$./\&lt;/CODE&gt;;,~+=)(|}{][&amp;gt;&amp;lt;` .. It extracts the previous 255 props quite nicely though&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:22:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362407#M66065</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-08T18:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362408#M66066</link>
      <description>&lt;P&gt;Your source, is it one line per event or all those properties appear in same event? What are the fields that are automatically extracted by Splunk?&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362408#M66066</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-02-08T18:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362409#M66067</link>
      <description>&lt;P&gt;Try this instead:&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_sourcetype]
LINE_BREAKER = ((?!))
DATETIME_CONFIG=CURRENT
TRUNCATE=100000
KV_MODE = none
REPORT-my_fields = multi_extract
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[multi_extract]
REGEX = (?m)(.+?)=(.*)
FORMAT = $1::$2
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:54:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362409#M66067</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2018-02-08T18:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362410#M66068</link>
      <description>&lt;P&gt;None, because I made it KV_MODE=none. No, All lines come in the same event. I purposedly made it so with the &lt;CODE&gt;LINE_BREAKER = ((?!))&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:59:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362410#M66068</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2020-09-29T17:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362411#M66069</link>
      <description>&lt;P&gt;Thanks, let me try it out&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 18:58:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362411#M66069</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-08T18:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362412#M66070</link>
      <description>&lt;P&gt;This doesnt help.. It just clumps them all together. I want each line to become a new field with a given value.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 19:03:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362412#M66070</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-08T19:03:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362413#M66071</link>
      <description>&lt;P&gt;It just makes &lt;CODE&gt;my.prop.1 = "1 my.prop.2 = 2 my.prop.3 = 3 ..."&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2018 19:06:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362413#M66071</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-08T19:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362414#M66072</link>
      <description>&lt;P&gt;@somesoni2 ♦ Do you know how this should be done ?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 09:41:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362414#M66072</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-09T09:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362415#M66073</link>
      <description>&lt;P&gt;@masonmorales can you provide support to your own answer based on the feedback I gave you ?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 09:42:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362415#M66073</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-09T09:42:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362416#M66074</link>
      <description>&lt;P&gt;Are there always only 4 lines? If so you could just use 4 extract statements that are more specific.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 16:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362416#M66074</guid>
      <dc:creator>masonmorales</dc:creator>
      <dc:date>2018-02-09T16:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract multiple fields using the Extract property in props.conf?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362417#M66075</link>
      <description>&lt;P&gt;No.. they're above 400. This is the reason I don't use &lt;CODE&gt;KV_MODE=AUTO&lt;/CODE&gt; because it has a 100 limit max extractions. The can be alphanumerical aswell or have only symbols&lt;/P&gt;</description>
      <pubDate>Fri, 09 Feb 2018 16:27:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-extract-multiple-fields-using-the-Extract-property-in/m-p/362417#M66075</guid>
      <dc:creator>greggz</dc:creator>
      <dc:date>2018-02-09T16:27:56Z</dc:date>
    </item>
  </channel>
</rss>

