<?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: Field values with spaces in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140559#M12071</link>
    <description>&lt;P&gt;Well you could extract the value from the the event and then assign it to a new filed. Take a chance with the below one.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source...| rex field=_raw "errorMsg=(?P&amp;lt;Error&amp;gt;[\S\s]+)" |stats count by Error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 23 Apr 2014 19:03:25 GMT</pubDate>
    <dc:creator>linu1988</dc:creator>
    <dc:date>2014-04-23T19:03:25Z</dc:date>
    <item>
      <title>Field values with spaces</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140553#M12065</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;

&lt;P&gt;I'm trying to use a field that has values that have spaces. &lt;/P&gt;

&lt;P&gt;For example: errorMsg=Requested tickets could not be reserved &lt;/P&gt;

&lt;P&gt;another example: errorMsg=System.ObjectDisposedException: The factory was disposed and can no longer be used. Object name: 'this'.&lt;/P&gt;

&lt;P&gt;The problem is that the messages contain spaces. All of the messages are different in this field, some longer with less spaces and some shorter. When I do a stats count command on the errorMsg field but all I get is the first word of the string.&lt;/P&gt;

&lt;P&gt;Any ideas on how I can correct this?&lt;/P&gt;

&lt;P&gt;I also tried using the Field Extractor but alas no good.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 18:11:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140553#M12065</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2014-04-23T18:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field values with spaces</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140554#M12066</link>
      <description>&lt;P&gt;do you have the  entire sentence always as the error message after errorMsg=?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 18:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140554#M12066</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-23T18:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Field values with spaces</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140555#M12067</link>
      <description>&lt;P&gt;No sometimes it is something more simple as: errorMsg=Requested tickets could not be reserved&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 18:20:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140555#M12067</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2014-04-23T18:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Field values with spaces</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140556#M12068</link>
      <description>&lt;P&gt;but it is always more than one word&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 18:49:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140556#M12068</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2014-04-23T18:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Field values with spaces</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140557#M12069</link>
      <description>&lt;P&gt;i meant after = sign do you have the error message or do you get something else??&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 18:50:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140557#M12069</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-23T18:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Field values with spaces</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140558#M12070</link>
      <description>&lt;P&gt;yes after the = sign there is always a message like examples above. It is NEVER NULL. When I use the stats command I only get the first word of the message&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 18:51:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140558#M12070</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2014-04-23T18:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Field values with spaces</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140559#M12071</link>
      <description>&lt;P&gt;Well you could extract the value from the the event and then assign it to a new filed. Take a chance with the below one.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source...| rex field=_raw "errorMsg=(?P&amp;lt;Error&amp;gt;[\S\s]+)" |stats count by Error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 19:03:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140559#M12071</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-23T19:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Field values with spaces</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140560#M12072</link>
      <description>&lt;P&gt;Both of these seemed to be correct answers. The first solves inline and the second works great as an extraction. Thanks for the help guys, I greatly appreciate it!&lt;/P&gt;</description>
      <pubDate>Wed, 23 Apr 2014 19:24:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-values-with-spaces/m-p/140560#M12072</guid>
      <dc:creator>tkwaller</dc:creator>
      <dc:date>2014-04-23T19:24:45Z</dc:date>
    </item>
  </channel>
</rss>

