<?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: How to use timechart to display whether a log exists or not over a certain time range in 15 minute buckets? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-to-display-whether-a-log-exists-or-not-over/m-p/644588#M223235</link>
    <description>&lt;P&gt;Assuming that you are using line chart, and you want the value to be 1 when log exists and 0 when there is no log during the bucket, something like this will do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where source=cloud_log earliest=-3h latest=+2h by _time span=15m
| timechart sum(eval(if(count &amp;gt; 0, 1, 0))) as has_log
| fillnull value=0&lt;/LI-CODE&gt;&lt;P&gt;If you only want to display line on the zero axis and don't care how the column look like, you can skip fillnull, just set visualization to touch zero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2023 07:00:50 GMT</pubDate>
    <dc:creator>yuanliu</dc:creator>
    <dc:date>2023-05-25T07:00:50Z</dc:date>
    <item>
      <title>How to use timechart to display whether a log exists or not over a certain time range in 15 minute buckets?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-to-display-whether-a-log-exists-or-not-over/m-p/644489#M223213</link>
      <description>&lt;P&gt;I am trying to write a search that displays a table that shows whether a log in cloud watch exists or not every 15 minutes over a 5 hour period. The caveat being that I would like it to show a 0 for time intervals that don’t have the log even if they’re in the future. I’m also having trouble formatting the result table so that the time intervals are the columns/x axis and the count is row/y-axis.&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated, thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 15:03:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-to-display-whether-a-log-exists-or-not-over/m-p/644489#M223213</guid>
      <dc:creator>JohnCM8181</dc:creator>
      <dc:date>2023-05-24T15:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use timechart to display whether a log exists or not over a certain time range in 15 minute buckets?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-to-display-whether-a-log-exists-or-not-over/m-p/644588#M223235</link>
      <description>&lt;P&gt;Assuming that you are using line chart, and you want the value to be 1 when log exists and 0 when there is no log during the bucket, something like this will do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats count where source=cloud_log earliest=-3h latest=+2h by _time span=15m
| timechart sum(eval(if(count &amp;gt; 0, 1, 0))) as has_log
| fillnull value=0&lt;/LI-CODE&gt;&lt;P&gt;If you only want to display line on the zero axis and don't care how the column look like, you can skip fillnull, just set visualization to touch zero.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 07:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-timechart-to-display-whether-a-log-exists-or-not-over/m-p/644588#M223235</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2023-05-25T07:00:50Z</dc:date>
    </item>
  </channel>
</rss>

