<?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: Using inline extractions to extract multi-value fields. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Using-inline-extractions-to-extract-multi-value-fields/m-p/71091#M17786</link>
    <description>&lt;P&gt;It's &lt;CODE&gt;max_matches&lt;/CODE&gt; (with the underscore) I believe.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Dec 2012 22:04:28 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-12-21T22:04:28Z</dc:date>
    <item>
      <title>Using inline extractions to extract multi-value fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-inline-extractions-to-extract-multi-value-fields/m-p/71089#M17784</link>
      <description>&lt;P&gt;Here's an example of my log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;zone name PAERSCTVIH025_XIV02_z vsan 2542
  attribute broadcast
  fcalias name PACTMXIV02_P3_M789 vsan 2542
    pwwn 50:01:73:80:61:b1:01:72
    pwwn 50:01:73:80:61:b1:01:82
    pwwn 50:01:73:80:61:b1:01:92

  fcalias name PAERSCTVIH025_fc vsan 2542
    pwwn 50:01:43:80:05:6b:87:d2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm using the "Extract Fields" interface to try to assign field names to some of the data in the entry.&lt;/P&gt;

&lt;P&gt;There are two things I'd like to do, not sure if it is possible to do them both.. But I'd like to try.&lt;/P&gt;

&lt;P&gt;First one would be to just pull all of the WWNs from the event and put them in a multi-value key.&lt;/P&gt;

&lt;P&gt;so I'd like to see something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;pwwn = "50:01:73:80:61:b1:01:72", pwwn = "50:01:73:80:61:b1:01:82", etc..
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In my search results. That way I can search for pwwn = "something", and get that back.&lt;/P&gt;

&lt;P&gt;I have this regex for my field extraction:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;pwwn (?P&amp;lt;FIELDNAME&amp;gt;[^ ]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when I run the preview, it only highlights the first match in each event. I tried saving it and seeing if it behaved any differently, but it didn't.&lt;BR /&gt;
Is there a way to specify a regex that'd match every match inside an event, instead of just the first?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 18:09:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-inline-extractions-to-extract-multi-value-fields/m-p/71089#M17784</guid>
      <dc:creator>Ricapar</dc:creator>
      <dc:date>2012-12-21T18:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Using inline extractions to extract multi-value fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-inline-extractions-to-extract-multi-value-fields/m-p/71090#M17785</link>
      <description>&lt;P&gt;If you're using rex within the search, yes, you just add &lt;CODE&gt;max_match=100&lt;/CODE&gt; to the rex command&lt;/P&gt;

&lt;P&gt;It you're adding extractions to props.conf its more complicated.&lt;/P&gt;

&lt;P&gt;see &lt;A href="http://wiki.splunk.com/Community:Multi-line_Events_Multi-value_Field_Extraction"&gt;this&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You need to break out the extract field of pwwn, put it in transforms.conf and add &lt;CODE&gt;MVADD = true&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Post the config you have already if you need any help&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 21:52:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-inline-extractions-to-extract-multi-value-fields/m-p/71090#M17785</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2012-12-21T21:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Using inline extractions to extract multi-value fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-inline-extractions-to-extract-multi-value-fields/m-p/71091#M17786</link>
      <description>&lt;P&gt;It's &lt;CODE&gt;max_matches&lt;/CODE&gt; (with the underscore) I believe.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Dec 2012 22:04:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-inline-extractions-to-extract-multi-value-fields/m-p/71091#M17786</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-12-21T22:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using inline extractions to extract multi-value fields.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Using-inline-extractions-to-extract-multi-value-fields/m-p/71092#M17787</link>
      <description>&lt;P&gt;corrected - thanks Ayn&lt;/P&gt;</description>
      <pubDate>Sat, 22 Dec 2012 18:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Using-inline-extractions-to-extract-multi-value-fields/m-p/71092#M17787</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2012-12-22T18:44:56Z</dc:date>
    </item>
  </channel>
</rss>

