<?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 Field discovery with multi-value containing space in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-discovery-with-multi-value-containing-space/m-p/69779#M17488</link>
    <description>&lt;P&gt;Hi, &lt;BR /&gt;
I'm trying to understand how the Field Discovery part works by default while dealing with a multi-value string containing spaces. &lt;BR /&gt;
e.g I have like 50 fields similar to following which takes the format key1=value1 with a few exceptions where there are more than one value to the key; key2=value3 value4. Note the "space" between the two values here.&lt;/P&gt;

&lt;P&gt;category=auto model=new color=red blue green type=sports&lt;/P&gt;

&lt;P&gt;I have a choice of updating my message signature.&lt;/P&gt;

&lt;P&gt;Q. I would like to know what is the best way to escape the space between red blue red?&lt;BR /&gt;
Q. Putting the whole value side in the couble-quotes (") like following would solve this problem?&lt;BR /&gt;
category=auto model=new color="red blue green" type=sports&lt;BR /&gt;
Q. Any other alternative?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2011 21:50:14 GMT</pubDate>
    <dc:creator>swapsapar</dc:creator>
    <dc:date>2011-09-02T21:50:14Z</dc:date>
    <item>
      <title>Field discovery with multi-value containing space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-discovery-with-multi-value-containing-space/m-p/69779#M17488</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
I'm trying to understand how the Field Discovery part works by default while dealing with a multi-value string containing spaces. &lt;BR /&gt;
e.g I have like 50 fields similar to following which takes the format key1=value1 with a few exceptions where there are more than one value to the key; key2=value3 value4. Note the "space" between the two values here.&lt;/P&gt;

&lt;P&gt;category=auto model=new color=red blue green type=sports&lt;/P&gt;

&lt;P&gt;I have a choice of updating my message signature.&lt;/P&gt;

&lt;P&gt;Q. I would like to know what is the best way to escape the space between red blue red?&lt;BR /&gt;
Q. Putting the whole value side in the couble-quotes (") like following would solve this problem?&lt;BR /&gt;
category=auto model=new color="red blue green" type=sports&lt;BR /&gt;
Q. Any other alternative?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2011 21:50:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-discovery-with-multi-value-containing-space/m-p/69779#M17488</guid>
      <dc:creator>swapsapar</dc:creator>
      <dc:date>2011-09-02T21:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: Field discovery with multi-value containing space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-discovery-with-multi-value-containing-space/m-p/69780#M17489</link>
      <description>&lt;P&gt;Putting the value inside quotes will make splunk take "red blue green" as one value for "color", not a multivalue field.  You could take this approach and then use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makemv delim=" " color
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And splunk will make it a multivalue field.&lt;/P&gt;

&lt;P&gt;If you'd like splunk to treat the these items as a multivalued field without using the search language, you'll need to setup fields.conf for the regex that defines the different values.  Take a look at this portion of the documentation: &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Knowledge/ConfigureSplunktoparsemulti-valuefields"&gt;Multivalue Vields&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;the example fields.conf file has a great example doing something similar with the email "to" field.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2011 09:52:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-discovery-with-multi-value-containing-space/m-p/69780#M17489</guid>
      <dc:creator>bbingham</dc:creator>
      <dc:date>2011-09-03T09:52:00Z</dc:date>
    </item>
  </channel>
</rss>

