<?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: Custom date should show the timechart with 0 for the non matching event in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356023#M105351</link>
    <description>&lt;P&gt;I would suggest keeping it in epoch format, rename to _time and use timechart instead, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=aaaa earliest=-28d@d latest=@d
| ....your logic to extract timestamp from file name in epoch format ..|
| eval _time=customdateinepoch
|timechart span=1d count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 23 Apr 2018 14:58:11 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-04-23T14:58:11Z</dc:date>
    <item>
      <title>Custom date should show the timechart with 0 for the non matching event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356020#M105348</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a data in which there is a content of the filename with the timestamp in epoch time as below : &lt;/P&gt;

&lt;P&gt;File generated at : /home/AAA/file_one_573838339.txt&lt;BR /&gt;
File generated at : /root/BBB/file_one_5722929299.txt&lt;/P&gt;

&lt;P&gt;Now, the _time value for both the events are diff. I have converted the epoch time in human readable format and captured in a field called "customdate", now I want to know what is the count of file for each date. &lt;/P&gt;

&lt;P&gt;I gave .. .index=aaaa  earliest=-28d@d latest=@d|  ... .| stats count by "customdate"&lt;/P&gt;

&lt;P&gt;If I give this, I am getting the data for the last 28 days  but some times I only see the data for 10 days not for all 28 days.&lt;/P&gt;

&lt;P&gt;for the missing days, the data is now showing in the graph. it is only showing me the data for which data is present. Kindly help me to get this solved.&lt;/P&gt;

&lt;P&gt;I should see the data as 0 for the missing days along with the data present in the custom date.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:11:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356020#M105348</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2020-09-29T19:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom date should show the timechart with 0 for the non matching event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356021#M105349</link>
      <description>&lt;P&gt;Can you tell me how your extracting _time as epoch? And also what search query you are using for epoch conversion?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 14:07:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356021#M105349</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-23T14:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Custom date should show the timechart with 0 for the non matching event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356022#M105350</link>
      <description>&lt;P&gt;573838339 and 5722929299 are the epoch time , which we are changing to the customdate field and then doing stats count on that &lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 14:47:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356022#M105350</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2018-04-23T14:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Custom date should show the timechart with 0 for the non matching event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356023#M105351</link>
      <description>&lt;P&gt;I would suggest keeping it in epoch format, rename to _time and use timechart instead, like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=aaaa earliest=-28d@d latest=@d
| ....your logic to extract timestamp from file name in epoch format ..|
| eval _time=customdateinepoch
|timechart span=1d count
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Apr 2018 14:58:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356023#M105351</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-23T14:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom date should show the timechart with 0 for the non matching event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356024#M105352</link>
      <description>&lt;P&gt;This is another work around &lt;/P&gt;

&lt;P&gt;base search |extract epoch format &lt;BR /&gt;
| convert ctime(epochfield) as pct |bin pct span=1d | stats count by pct&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 15:09:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356024#M105352</guid>
      <dc:creator>ssadanala1</dc:creator>
      <dc:date>2018-04-23T15:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom date should show the timechart with 0 for the non matching event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356025#M105353</link>
      <description>&lt;P&gt;This will not fix the continuation issue which he was already facing with his stats.  Timechart will fill in the gaps in between.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 15:15:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356025#M105353</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-23T15:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom date should show the timechart with 0 for the non matching event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356026#M105354</link>
      <description>&lt;P&gt;This is not working, because if I do like this, all the value is coming as 0 &lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 15:17:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356026#M105354</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2018-04-23T15:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Custom date should show the timechart with 0 for the non matching event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356027#M105355</link>
      <description>&lt;P&gt;This is not showing the result as expected as it is not showing the date for which there is no count. I want to have 0 for the dates when you dont have any events !!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 15:22:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356027#M105355</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2018-04-23T15:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom date should show the timechart with 0 for the non matching event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356028#M105356</link>
      <description>&lt;P&gt;Can you share your full query?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 15:24:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356028#M105356</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-23T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom date should show the timechart with 0 for the non matching event</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356029#M105357</link>
      <description>&lt;P&gt;Thanks for correcting me .&lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 15:40:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Custom-date-should-show-the-timechart-with-0-for-the-non/m-p/356029#M105357</guid>
      <dc:creator>ssadanala1</dc:creator>
      <dc:date>2018-04-23T15:40:01Z</dc:date>
    </item>
  </channel>
</rss>

