<?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: data is not appropriate in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174576#M98263</link>
    <description>&lt;P&gt;It is not coming as expected, even if there is no data for any date , it should show 0 against each _time &lt;/P&gt;</description>
    <pubDate>Fri, 24 Oct 2014 13:33:25 GMT</pubDate>
    <dc:creator>abhayneilam</dc:creator>
    <dc:date>2014-10-24T13:33:25Z</dc:date>
    <item>
      <title>data is not appropriate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174574#M98261</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am using the below query which I am running for the last 7 days , but I am getting the data for only 3 days, I want to show "0" for dates for which data is not available.&lt;/P&gt;

&lt;P&gt;(index="AAA" sourcetype="XXXX" ) OR (index=BBB sourcetype=YYY service=ABC country=QQQQ ) | rex "sss][(?.&lt;EM&gt;?)]" | rex "](?.&lt;/EM&gt;?) ::" | rex "(?.*?)]" | bucket span=1d _time | stats dc(AAAAAA) as something, list(BBBBBBB), list(ASDSA) by CD,_time | where something&amp;gt;1 | stats count as "Total Count" by _time&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:57:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174574#M98261</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2020-09-28T17:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: data is not appropriate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174575#M98262</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="AAA" sourcetype="XXXX" ) OR (index=BBB sourcetype=YYY service=ABC country=QQQQ ) | rex "sss][(?.?)]" | rex "](?.?) ::" | rex "(?.*?)]" | bucket span=1d _time | stats dc(AAAAAA) as something, list(BBBBBBB), list(ASDSA) by CD,_time | where something&amp;gt;1 | stats count as "Total Count" by _time|fillnull value=0  'Total Count'
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Oct 2014 13:28:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174575#M98262</guid>
      <dc:creator>lpolo</dc:creator>
      <dc:date>2014-10-24T13:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: data is not appropriate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174576#M98263</link>
      <description>&lt;P&gt;It is not coming as expected, even if there is no data for any date , it should show 0 against each _time &lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 13:33:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174576#M98263</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2014-10-24T13:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: data is not appropriate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174577#M98264</link>
      <description>&lt;P&gt;Finally , my output is coming as : &lt;/P&gt;

&lt;P&gt;10/21/2014    500&lt;BR /&gt;
10/24/2014    600&lt;/P&gt;

&lt;P&gt;But I am running my query from 17 to 26, so There is no data except 21 and    24, but I want the output like &lt;/P&gt;

&lt;P&gt;10/17/2014   0&lt;BR /&gt;
10/18/2014   0&lt;BR /&gt;
10/19/2014   0&lt;BR /&gt;
10/20/2014   0&lt;BR /&gt;
10/21/2014   500&lt;BR /&gt;
10/22/2014   0&lt;BR /&gt;
10/23/2014   0&lt;BR /&gt;
10/24/2014   600&lt;BR /&gt;
10/25/2014   0&lt;BR /&gt;
10/26/2014   0&lt;/P&gt;

&lt;P&gt;Please help , I am in need of this output urgently&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2014 14:53:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174577#M98264</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2014-10-24T14:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: data is not appropriate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174578#M98265</link>
      <description>&lt;P&gt;Guys any answer to this !!&lt;/P&gt;</description>
      <pubDate>Sat, 21 Apr 2018 14:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174578#M98265</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2018-04-21T14:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: data is not appropriate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174579#M98266</link>
      <description>&lt;P&gt;@abhayneilam can you post your query using code button ( &lt;CODE&gt;101010&lt;/CODE&gt; ) or &lt;CODE&gt;CTRL+ K&lt;/CODE&gt; or add four spaces before each line of your SPL? This way special characters in your code will not be skipped.&lt;/P&gt;

&lt;P&gt;Can you try using timechart for the second query which will give you buckets with 0 count using filnull?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your Base search&amp;gt;
| bucket span=1d _time 
| stats dc(AAAAAA) as something, list(BBBBBBB), list(ASDSA) by CD,_time 
| where something&amp;gt;1
| timechart count as "Total Count"
| fillnull value=0 "Total Count"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 21 Apr 2018 17:37:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174579#M98266</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-21T17:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: data is not appropriate</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174580#M98267</link>
      <description>&lt;P&gt;That is what &lt;CODE&gt;timechart&lt;/CODE&gt; does so try this (you could also use &lt;CODE&gt;gentimes&lt;/CODE&gt; similarly, but this is more clear and familiar, if somewhat less efficient):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(index="AAA" sourcetype="XXXX" ) OR (index=BBB sourcetype=YYY service=ABC country=QQQQ )
| rex "sss][(?.?)]" | rex "](?.?) ::" | rex "(?.*?)]"
| bucket span=1d _time
| append [ | makeresults | timechart span=1d count | table _time ]
| stats dc(AAAAAA) as something, list(BBBBBBB), list(ASDSA) by CD,_time
| where something&amp;gt;1
| stats count as "Total Count" by _time
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 Apr 2018 17:03:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/data-is-not-appropriate/m-p/174580#M98267</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-04-22T17:03:43Z</dc:date>
    </item>
  </channel>
</rss>

