<?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: Indexed field with spaces in the value in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41678#M7751</link>
    <description>&lt;P&gt;Have you also added the indexed field to &lt;CODE&gt;fields.conf&lt;/CODE&gt; ?  Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[orig_source]
INDEXED=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This may not help your issue, but ISTR that it is required.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2011 18:38:08 GMT</pubDate>
    <dc:creator>dwaddle</dc:creator>
    <dc:date>2011-12-28T18:38:08Z</dc:date>
    <item>
      <title>Indexed field with spaces in the value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41677#M7750</link>
      <description>&lt;P&gt;What is the proper way to create an indexed field with spaces in it?&lt;/P&gt;

&lt;P&gt;Given something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;log message foo="value with spaces"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I can't seem to come up with a transform that allows me to search against that value. I have a good reason for an indexed field (capturing millions of disparate sources without exploding Sources.meta), but the filenames have spaces in them.&lt;/P&gt;

&lt;P&gt;Here's the closet I've been able to come, but the search requires a * on the end, like orig_source="value with spaces*" to work.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[copy_source]
SOURCE_KEY=MetaData:Source
REGEX=source::(.*)
FORMAT=orig_source::"$1"
WRITE_META = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I have also tried&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FORMAT="orig_source::$1"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;FORMAT=orig_source::$1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;to no avail.&lt;/P&gt;

&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2011 18:26:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41677#M7750</guid>
      <dc:creator>vbumgarn</dc:creator>
      <dc:date>2011-12-28T18:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed field with spaces in the value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41678#M7751</link>
      <description>&lt;P&gt;Have you also added the indexed field to &lt;CODE&gt;fields.conf&lt;/CODE&gt; ?  Something like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[orig_source]
INDEXED=true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This may not help your issue, but ISTR that it is required.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2011 18:38:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41678#M7751</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2011-12-28T18:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed field with spaces in the value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41679#M7752</link>
      <description>&lt;P&gt;It doesn't seem to matter.  Give it a try and see if you can come up with a working example.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2011 19:57:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41679#M7752</guid>
      <dc:creator>vbumgarn</dc:creator>
      <dc:date>2011-12-28T19:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed field with spaces in the value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41680#M7753</link>
      <description>&lt;P&gt;Actually, I may have it working...&lt;BR /&gt;
INDEXED=true&lt;/P&gt;

&lt;P&gt;FORMAT=newfield::"$1"&lt;/P&gt;

&lt;P&gt;Maybe.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2011 20:01:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41680#M7753</guid>
      <dc:creator>vbumgarn</dc:creator>
      <dc:date>2011-12-28T20:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Indexed field with spaces in the value</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41681#M7754</link>
      <description>&lt;P&gt;Success.  The combination of INDEXED=true in fields.conf and FORMAT=newfield::"$1" in transforms.conf seems to do the trick.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2011 20:04:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Indexed-field-with-spaces-in-the-value/m-p/41681#M7754</guid>
      <dc:creator>vbumgarn</dc:creator>
      <dc:date>2011-12-28T20:04:42Z</dc:date>
    </item>
  </channel>
</rss>

