<?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: Mixed Multivalued Field Extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89054#M182208</link>
    <description>&lt;P&gt;Worked, Awesome.&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 09 Oct 2013 19:03:33 GMT</pubDate>
    <dc:creator>brianjbrady</dc:creator>
    <dc:date>2013-10-09T19:03:33Z</dc:date>
    <item>
      <title>Mixed Multivalued Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89051#M182205</link>
      <description>&lt;P&gt;I am having some issues pulling fields out of some particularly strange logging statements, kind of a mix of multivalued and traditional.&lt;/P&gt;

&lt;P&gt;For Example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;10/08/2013 23:00:00 INFO:   |   INF|SVC|TASK|1233212123|something happened when ip=128 and stranger=asdf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I need to pull out the following fields:&lt;/P&gt;

&lt;P&gt;Field 1: field1=INF&lt;/P&gt;

&lt;P&gt;Field 2: field2=SVC&lt;/P&gt;

&lt;P&gt;Field 3: field3=TASK&lt;/P&gt;

&lt;P&gt;Field 4: field4=1233212123&lt;/P&gt;

&lt;P&gt;Field 5: ip=128&lt;/P&gt;

&lt;P&gt;Field6: stranger=asdf&lt;/P&gt;

&lt;P&gt;Thoughts???&lt;/P&gt;</description>
      <pubDate>Tue, 08 Oct 2013 23:30:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89051#M182205</guid>
      <dc:creator>brianjbrady</dc:creator>
      <dc:date>2013-10-08T23:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Multivalued Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89052#M182206</link>
      <description>&lt;P&gt;Which field contains ip and stranger?  If the other fields exist,then the remaining text must be in some other field.&lt;BR /&gt;
Or, are you saying that none of the fields are extracted and you need to use | as a delimiter with a multi extraction from the last field.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 00:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89052#M182206</guid>
      <dc:creator>lukejadamec</dc:creator>
      <dc:date>2013-10-09T00:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Multivalued Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89053#M182207</link>
      <description>&lt;P&gt;I don't see the multivaluedness here. From your description, it seems like you just want to extract some fields. Some are pipe-delimited, others are key=value.&lt;/P&gt;

&lt;P&gt;Assuming that the event format does not change, I would probably use an EXTRACT in props.conf for the pipe-delimited stuff, and let splunk handle the key=value part automatically.&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[your sourcetype here]
EXTRACT-blah = ^[^\|]+\|\s+(?&amp;lt;field1&amp;gt;[^\|]+)\|(?&amp;lt;field2&amp;gt;[^\|]+)\|(?&amp;lt;field3&amp;gt;[^\|]+)\|(?&amp;lt;field4&amp;gt;[^\|]+)\|
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Hope this helps,&lt;/P&gt;

&lt;P&gt;K&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 09:05:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89053#M182207</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-09T09:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Multivalued Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89054#M182208</link>
      <description>&lt;P&gt;Worked, Awesome.&lt;BR /&gt;
Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 19:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89054#M182208</guid>
      <dc:creator>brianjbrady</dc:creator>
      <dc:date>2013-10-09T19:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed Multivalued Field Extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89055#M182209</link>
      <description>&lt;P&gt;you're welcome. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 19:30:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Mixed-Multivalued-Field-Extraction/m-p/89055#M182209</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-10-09T19:30:51Z</dc:date>
    </item>
  </channel>
</rss>

