<?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: Dealing with spaces in fields in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133534#M36450</link>
    <description>&lt;P&gt;do your generated log file have only one field or multiple? If multiple fields, how are multiple filed separated?&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2014 19:33:15 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-01-31T19:33:15Z</dc:date>
    <item>
      <title>Dealing with spaces in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133533#M36449</link>
      <description>&lt;P&gt;I am sending events into Splunk using a tool that has a notification engine. The notification engine only allows me to set a value which then extracts the message attribute for forwarding.&lt;/P&gt;

&lt;P&gt;For instance I set the value "$reason" and what gets sent for that value can be one or many words. When the value sent is more than one word, Splunk will only parse the first word. Hence if the field in the syslog message is "event_id=Added registered device for user: jdoe", splunk will show it as "event_id Added". How do I get Splunk to read in the entire message knowing that I can't do anything to adjust the way the source sends it?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 15:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133533#M36449</guid>
      <dc:creator>kjonzeatgmaildo</dc:creator>
      <dc:date>2020-09-28T15:47:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with spaces in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133534#M36450</link>
      <description>&lt;P&gt;do your generated log file have only one field or multiple? If multiple fields, how are multiple filed separated?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 19:33:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133534#M36450</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-01-31T19:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with spaces in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133535#M36451</link>
      <description>&lt;P&gt;There are actually many fields all of which are separated by spaces.  Actually here's what one looks like&lt;/P&gt;

&lt;P&gt;name="Registration Event" event_id=$message vendor="Extreme Networks" product=NAC RegistrationType=$type RegistrationTime=$time RegistrationMessage=$message RegistrationSource=$source&lt;/P&gt;

&lt;P&gt;If the answer from any of these attributes is more than one word, Splunk ignores it even though it's in the raw message that Splunk receives.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2014 20:07:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133535#M36451</guid>
      <dc:creator>kjonzeatgmaildo</dc:creator>
      <dc:date>2014-01-31T20:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with spaces in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133536#M36452</link>
      <description>&lt;P&gt;Can you rewrite your message templates to include quotation marks enclosing the token substitutions?  For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;name="Registration Event" event_id="$message" vendor="Extreme Networks" product="NAC" RegistrationType="$type" RegistrationTime="$time" RegistrationMessage="$message" RegistrationSource="$source"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 01 Feb 2014 00:10:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133536#M36452</guid>
      <dc:creator>grijhwani</dc:creator>
      <dc:date>2014-02-01T00:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with spaces in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133537#M36453</link>
      <description>&lt;P&gt;That was my first thought as well. I tried it and it had no effect what-so-ever. I doesn't seem as if I can do aything about how the events are sent; I need to do something on the Splunk side to make it understand that "$message" can be multiple words with spaces. Is this possible?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 18:52:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133537#M36453</guid>
      <dc:creator>kjonzeatgmaildo</dc:creator>
      <dc:date>2014-02-03T18:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with spaces in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133538#M36454</link>
      <description>&lt;P&gt;Will it be possible for you to change the field delimiter from space to comma?&lt;/P&gt;</description>
      <pubDate>Mon, 03 Feb 2014 19:01:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133538#M36454</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-03T19:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Dealing with spaces in fields</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133539#M36455</link>
      <description>&lt;P&gt;I usually define my own key/value extraction for this. As long as there's a good way of specifying what the key and what the value is this works fine. Something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[my_kv_extract]
REGEX = ([^=]+)="([^"]+)
FORMAT = $1::$2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Feb 2014 19:12:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Dealing-with-spaces-in-fields/m-p/133539#M36455</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2014-02-03T19:12:03Z</dc:date>
    </item>
  </channel>
</rss>

