<?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: The stats command isn't returning any results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146611#M40941</link>
    <description>&lt;P&gt;@richgalloway: got it, so after changing it up a bit to &lt;CODE&gt;rex "^.*(?&amp;lt;vcbn&amp;gt;Value cannot be null.)$" | stats count(vcbn) by _raw&lt;/CODE&gt; I get a graph - but it's empty. What might I have missed there? I've also noticed that the results listing no longer has these errors listed.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Feb 2014 18:37:45 GMT</pubDate>
    <dc:creator>mperren</dc:creator>
    <dc:date>2014-02-11T18:37:45Z</dc:date>
    <item>
      <title>The stats command isn't returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146607#M40937</link>
      <description>&lt;P&gt;I have the following splunk query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search (...) AND ERROR
    | rex field=error "^.*(?&amp;lt;vcbn&amp;gt;Value cannot be null.)$"
    | stats count(vcbn) by error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but for whatever reason the &lt;CODE&gt;stats count(vcbn) by error&lt;/CODE&gt; isn't generating any results.&lt;/P&gt;

&lt;P&gt;Additionally, the &lt;CODE&gt;rex field=error "^.*(?&amp;lt;vcbn&amp;gt;Value cannot be null.)$"&lt;/CODE&gt; isn't building a new field in the list on the left of the event search results.&lt;/P&gt;

&lt;P&gt;The search itself returns &lt;CODE&gt;170 events&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 17:50:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146607#M40937</guid>
      <dc:creator>mperren</dc:creator>
      <dc:date>2014-02-11T17:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: The stats command isn't returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146608#M40938</link>
      <description>&lt;P&gt;Start by displaying just the results of your search (everything before "rex") to make sure you're getting the events you think you're getting.  Do you have a field called 'error'?  If you want to capture the full stop at the end of the error message it should be escaped (.).&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:14:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146608#M40938</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-02-11T18:14:18Z</dc:date>
    </item>
    <item>
      <title>Re: The stats command isn't returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146609#M40939</link>
      <description>&lt;P&gt;I don't get a field called error, I &lt;EM&gt;thought&lt;/EM&gt; I was trying to &lt;STRONG&gt;make&lt;/STRONG&gt; a field called error that pulled out that text and then get stats on it. However, I do get the results I'm expecting with just the search.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146609#M40939</guid>
      <dc:creator>mperren</dc:creator>
      <dc:date>2014-02-11T18:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: The stats command isn't returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146610#M40940</link>
      <description>&lt;P&gt;I thought that might be the case.  The &lt;CODE&gt;field&lt;/CODE&gt; argument to the &lt;CODE&gt;rex&lt;/CODE&gt; command tells rex what field to parse.  Results are put into fields created by the '&lt;CODE&gt;?&amp;lt;vcbn&amp;gt;&lt;/CODE&gt;' construct.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:31:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146610#M40940</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-02-11T18:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: The stats command isn't returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146611#M40941</link>
      <description>&lt;P&gt;@richgalloway: got it, so after changing it up a bit to &lt;CODE&gt;rex "^.*(?&amp;lt;vcbn&amp;gt;Value cannot be null.)$" | stats count(vcbn) by _raw&lt;/CODE&gt; I get a graph - but it's empty. What might I have missed there? I've also noticed that the results listing no longer has these errors listed.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:37:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146611#M40941</guid>
      <dc:creator>mperren</dc:creator>
      <dc:date>2014-02-11T18:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: The stats command isn't returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146612#M40942</link>
      <description>&lt;P&gt;please provide some sample log entries and the portion which have to be extracted as vcbn.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146612#M40942</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-02-11T18:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: The stats command isn't returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146613#M40943</link>
      <description>&lt;P&gt;what do you get in vcbn? do you get all the values which you expect? And what i think you would like count on vcbn&lt;/P&gt;

&lt;P&gt;rex "^.*(?&lt;VCBN&gt;Value cannot be null.)$" | stats count(vcbn) by vcbn&lt;/VCBN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:46:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146613#M40943</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-02-11T18:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: The stats command isn't returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146614#M40944</link>
      <description>&lt;P&gt;Try '&lt;CODE&gt;stats count(vcbn)&lt;/CODE&gt;'.  Since your search is only returning a single value, there is no grouping and so no use for a &lt;CODE&gt;by&lt;/CODE&gt; clause.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2014 18:47:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146614#M40944</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-02-11T18:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: The stats command isn't returning any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146615#M40945</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;search (...) AND ERROR
    | rex field=error "^.*(?&amp;lt;vcbn&amp;gt;Value cannot be null.)$"
    | stats count by vcbn
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Feb 2014 19:37:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/The-stats-command-isn-t-returning-any-results/m-p/146615#M40945</guid>
      <dc:creator>the_wolverine</dc:creator>
      <dc:date>2014-02-11T19:37:05Z</dc:date>
    </item>
  </channel>
</rss>

