<?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: Search field names with spaces in map command inner search in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-field-names-with-spaces-in-map-command-inner-search/m-p/241380#M71779</link>
    <description>&lt;P&gt;The escape character ended up working great, i.e.: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\"Field Name with Space\"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It took a little bit of fiddling to figure out which parts of the inner search were causing issues. &lt;/P&gt;</description>
    <pubDate>Tue, 24 Nov 2015 15:24:10 GMT</pubDate>
    <dc:creator>ErikaE</dc:creator>
    <dc:date>2015-11-24T15:24:10Z</dc:date>
    <item>
      <title>Search field names with spaces in map command inner search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-field-names-with-spaces-in-map-command-inner-search/m-p/241378#M71777</link>
      <description>&lt;P&gt;I have data from a sourcetype that I am searching with a map command like so: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=outersearch | map search="search source="innersource" | stats avg(Param)"  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This search runs correctly and returns the expected number of events from innersource. However, I would like to be able to search for a fieldname with a space in the inner search source. i.e. "Field Name"="String Value".  When I isolate the inner search, it works just fine. When I include it in the map string: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=outersearch | map search="search source="innersource" "Field Name"="String Value" | stats avg(Param)"   
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The map search returns no results. The documentation says that the map search string is 'literal' but I can't find any documentation on what that means or how it constrains how the search has to be written. &lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2015 21:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-field-names-with-spaces-in-map-command-inner-search/m-p/241378#M71777</guid>
      <dc:creator>ErikaE</dc:creator>
      <dc:date>2015-11-19T21:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Search field names with spaces in map command inner search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-field-names-with-spaces-in-map-command-inner-search/m-p/241379#M71778</link>
      <description>&lt;P&gt;Try this (demonstrates multiple approaches):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; source=outersearch | map search="search source=\"innersource\" $Field Name$='String Value' | stats avg(Param)" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 19 Nov 2015 22:44:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-field-names-with-spaces-in-map-command-inner-search/m-p/241379#M71778</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-11-19T22:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Search field names with spaces in map command inner search</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-field-names-with-spaces-in-map-command-inner-search/m-p/241380#M71779</link>
      <description>&lt;P&gt;The escape character ended up working great, i.e.: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;\"Field Name with Space\"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It took a little bit of fiddling to figure out which parts of the inner search were causing issues. &lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2015 15:24:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-field-names-with-spaces-in-map-command-inner-search/m-p/241380#M71779</guid>
      <dc:creator>ErikaE</dc:creator>
      <dc:date>2015-11-24T15:24:10Z</dc:date>
    </item>
  </channel>
</rss>

