<?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: multivalue fields and fields.conf in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23984#M4349</link>
    <description>&lt;P&gt;There's two answers here. Which one worked?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2013 20:41:05 GMT</pubDate>
    <dc:creator>jpass</dc:creator>
    <dc:date>2013-02-20T20:41:05Z</dc:date>
    <item>
      <title>multivalue fields and fields.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23978#M4343</link>
      <description>&lt;P&gt;With the following data:
    mac_addr=01-02-03-04-05-06, 01-02-03-04-05-07, 01-02-03-04-05-08&lt;/P&gt;

&lt;P&gt;Using this search will properly yield all the unique values of mac_addr:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;* | makemv delim=", " mac_addr
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Setting fields.conf as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mac_addr]
INDEXED = false
INDEXED_VALUE = false
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;While using a TOKENIZER of &lt;CODE&gt;([^,]\*)&lt;/CODE&gt; doesn't change the behavior of a basic search, like &lt;CODE&gt;"*"&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;What should be defined in the conf files, so that any search will yield the multivalue elements of the field, as if makemv had been specified, without having to specify makemv?  Using a search macro or eventtype is an undesired alternative.&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2010 02:47:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23978#M4343</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2010-08-02T02:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: multivalue fields and fields.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23979#M4344</link>
      <description>&lt;P&gt;Try just specifying the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mac_addr]
TOKENIZER=([^\,]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would also recommend making mac_addr Common-Information-Model compliant.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Aug 2010 10:35:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23979#M4344</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2010-08-02T10:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: multivalue fields and fields.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23980#M4345</link>
      <description>&lt;P&gt;I might try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TOKENIZER = ([^,]*)(,\s*)?
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But that's a guess. You can also try a search-time extraction instead:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[mysourcetype]
REPORT-mac = mac_addr,mac_addr_mv

[mac_addr]
#whatever you need to extract mac_addr_list, something like:
REGEX = mac_addr=(?&amp;lt;mac_addr&amp;gt;.*?)\s*(?=$|,\w+=)

[mac_addr_mv]
SOURCE_KEY = mac_addr
REGEX = (?&amp;lt;mac_addr_mv&amp;gt;[^,]*)(,\s*)?
MV_ADD = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The key of course is to ensure that the list extraction happens before the mv extraction (so listing them sequentially in the same &lt;CODE&gt;REPORT&lt;/CODE&gt; clause guarantees that). I am not sure of the relative order of extractions for &lt;CODE&gt;KV_MODE=auto&lt;/CODE&gt;, &lt;CODE&gt;EXTRACT&lt;/CODE&gt;, and &lt;CODE&gt;REPORT&lt;/CODE&gt; rules in props.conf, but I &lt;EM&gt;think&lt;/EM&gt; that it occurs in that very order, so that might work if mac_addr were extracted by &lt;CODE&gt;KV_MODE&lt;/CODE&gt; or &lt;CODE&gt;EXTRACT&lt;/CODE&gt; rules.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Aug 2010 01:13:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23980#M4345</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-08-03T01:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: multivalue fields and fields.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23981#M4346</link>
      <description>&lt;P&gt;Tokenizer didn't seem to work as expected. The search-time extraction worked like a charm.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2011 18:10:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23981#M4346</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-09T18:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: multivalue fields and fields.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23982#M4347</link>
      <description>&lt;P&gt;ron, which tokenizer suggestion didn't work, araitz's or gkanapathy's?  Or both?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2011 21:59:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23982#M4347</guid>
      <dc:creator>blurblebot</dc:creator>
      <dc:date>2011-04-25T21:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: multivalue fields and fields.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23983#M4348</link>
      <description>&lt;P&gt;Can someone expand on how to get the tokenizer working in this example?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2011 19:49:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23983#M4348</guid>
      <dc:creator>ehoward</dc:creator>
      <dc:date>2011-07-25T19:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: multivalue fields and fields.conf</title>
      <link>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23984#M4349</link>
      <description>&lt;P&gt;There's two answers here. Which one worked?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 20:41:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/multivalue-fields-and-fields-conf/m-p/23984#M4349</guid>
      <dc:creator>jpass</dc:creator>
      <dc:date>2013-02-20T20:41:05Z</dc:date>
    </item>
  </channel>
</rss>

