<?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: [Solved] How to extract fields with a space in a field name? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432696#M123643</link>
    <description>&lt;P&gt;Yes, you can.  If that solves your problem then please come back to answer the question and accept it to help future readers.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Apr 2019 18:23:12 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2019-04-26T18:23:12Z</dc:date>
    <item>
      <title>[Solved] How to extract fields with a space in a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432693#M123640</link>
      <description>&lt;P&gt;&lt;EM&gt;[edit - a workaround was found in the comments]&lt;/EM&gt;&lt;/P&gt;

&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We try to export VMware inventory to Splunk. A raw Splunk event looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;VM="Template Debian 9", Powerstate="poweredOn", IP Address="100.100.100.100", Cluster="My Cluster Name", VM ID="12345", ... etc.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Splunk extracts perfectly well all fields &lt;STRONG&gt;without&lt;/STRONG&gt; spaces in field name, like &lt;EM&gt;VM&lt;/EM&gt;, &lt;EM&gt;Cluster&lt;/EM&gt;, &lt;EM&gt;Powerstate&lt;/EM&gt;, etc. But it can't extract the fields &lt;STRONG&gt;with&lt;/STRONG&gt; spaces, like &lt;EM&gt;IP Address&lt;/EM&gt;, &lt;EM&gt;VM ID&lt;/EM&gt;, etc.; they are visible only in raw data, but not as fields.&lt;/P&gt;

&lt;P&gt;We tried to use a &lt;CODE&gt;rex&lt;/CODE&gt; command like that one:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex field="IP Address" mode=sed "s/ /_/g"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but we didn't succeed.&lt;/P&gt;

&lt;P&gt;Do you have any idea how we could extract these fields?&lt;/P&gt;

&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 12:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432693#M123640</guid>
      <dc:creator>AlexeySh</dc:creator>
      <dc:date>2019-04-26T12:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved] How to extract fields with a space in a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432694#M123641</link>
      <description>&lt;P&gt;What are the props.conf settings for the sourcetype you are using for the data?&lt;BR /&gt;
Splunk will parse key=value data quite well with the default settings, but does not handle embedded spaces without customization.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 12:58:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432694#M123641</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-04-26T12:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved] How to extract fields with a space in a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432695#M123642</link>
      <description>&lt;P&gt;Actually we use DB Connect app to perform a query like "SELECT * FROM ".&lt;/P&gt;

&lt;P&gt;And now you made me think that we can change field name directly in the DB Connect query!&lt;/P&gt;

&lt;P&gt;Sometime you just need a second brain to think &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 13:40:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432695#M123642</guid>
      <dc:creator>AlexeySh</dc:creator>
      <dc:date>2019-04-26T13:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved] How to extract fields with a space in a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432696#M123643</link>
      <description>&lt;P&gt;Yes, you can.  If that solves your problem then please come back to answer the question and accept it to help future readers.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 18:23:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432696#M123643</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-04-26T18:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: [Solved] How to extract fields with a space in a field name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432697#M123644</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;Check with CLEAN_KEYS setting in props.conf, if it can help.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2019 19:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Solved-How-to-extract-fields-with-a-space-in-a-field-name/m-p/432697#M123644</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2019-04-26T19:04:50Z</dc:date>
    </item>
  </channel>
</rss>

