<?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: Queries not giving exact result in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Queries-not-giving-exact-result/m-p/231823#M45158</link>
    <description>&lt;P&gt;Although you are selecting events with the string &lt;CODE&gt;"error"&lt;/CODE&gt;, you are not creating a field called &lt;CODE&gt;ERROR&lt;/CODE&gt; so splunk is using &lt;CODE&gt;null&lt;/CODE&gt; to indicate this.  You need to use the &lt;CODE&gt;rex&lt;/CODE&gt; command (before the &lt;CODE&gt;stats&lt;/CODE&gt; command) to create this field and then it will work.&lt;/P&gt;</description>
    <pubDate>Sun, 20 Sep 2015 14:29:38 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-09-20T14:29:38Z</dc:date>
    <item>
      <title>Queries not giving exact result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Queries-not-giving-exact-result/m-p/231822#M45157</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;My queries is something like given below -&lt;/P&gt;

&lt;P&gt;index=abc sourcetype=xyz ERROR | rename ERROR as "Error message" | timechart span=1h count by "Error message" &lt;/P&gt;

&lt;P&gt;but it is not giving the exact result when its running. I want to see the column "error message" with the time frame but it's giving me the column "null" with the time frame. Any suggestions would be appreciated. Thanks&lt;/P&gt;

&lt;P&gt;In the 2nd query -&lt;/P&gt;

&lt;P&gt;index=abc sourcetype=xyz upload_log_message="ERROR*" | rename upload_log_message as "Error message" | top "Error message"&lt;/P&gt;

&lt;P&gt;Through this query i want to see the top error messages that is showing in 1st query. this query is returning "no result found". How it could be possible when from 1st query i am able to fetching the error logs. Any ideas for this? &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 07:18:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Queries-not-giving-exact-result/m-p/231822#M45157</guid>
      <dc:creator>sunnyparmar</dc:creator>
      <dc:date>2020-09-29T07:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Queries not giving exact result</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Queries-not-giving-exact-result/m-p/231823#M45158</link>
      <description>&lt;P&gt;Although you are selecting events with the string &lt;CODE&gt;"error"&lt;/CODE&gt;, you are not creating a field called &lt;CODE&gt;ERROR&lt;/CODE&gt; so splunk is using &lt;CODE&gt;null&lt;/CODE&gt; to indicate this.  You need to use the &lt;CODE&gt;rex&lt;/CODE&gt; command (before the &lt;CODE&gt;stats&lt;/CODE&gt; command) to create this field and then it will work.&lt;/P&gt;</description>
      <pubDate>Sun, 20 Sep 2015 14:29:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Queries-not-giving-exact-result/m-p/231823#M45158</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-09-20T14:29:38Z</dc:date>
    </item>
  </channel>
</rss>

