<?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: Chart- return all cell==0 in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673760#M55168</link>
    <description>&lt;P&gt;Use _time, then timechart will fill in the blanks for you&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval _time=strptime(TimeStamp, "%F %T")
| timechart span=2h count(Name) by machine&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 10 Jan 2024 10:15:09 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2024-01-10T10:15:09Z</dc:date>
    <item>
      <title>Chart- return all cell==0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673739#M55165</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I need to find all time_interval for each machine where there is no data (no row for Name) .&lt;BR /&gt;(to goal is to create an alert&amp;nbsp;if there was no data in a time interval for a machine)&lt;/P&gt;&lt;P&gt;for example, if we look at one day and machine X.&lt;BR /&gt;if there was data in time interval 8:00-10:00, 10:00-12:00.&lt;BR /&gt;I need to return X and the rest of the interval (12:00-1:00,1:00-2:00,..)&lt;/P&gt;&lt;P&gt;i wrote the following command:&amp;nbsp;&lt;BR /&gt;| chart count(Name) over machine by time_interval&lt;/P&gt;&lt;P&gt;i get a table with all interval and machines. cell=0 if there is no data.&lt;BR /&gt;i want to return all cell =0 (i need the interval and machine where cell=0)&lt;BR /&gt;but i didn't succeed.&lt;BR /&gt;&lt;BR /&gt;i also tried to save the query and do left join but it doenst work.&lt;BR /&gt;it's a very simple mission, some can help me with that?&lt;BR /&gt;&lt;BR /&gt;thanks,&lt;BR /&gt;Maayan&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 08:11:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673739#M55165</guid>
      <dc:creator>maayan</dc:creator>
      <dc:date>2024-01-10T08:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Chart- return all cell==0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673745#M55166</link>
      <description>&lt;LI-CODE lang="markup"&gt;| timechart span=2h count(Name) by machine&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Jan 2024 09:07:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673745#M55166</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-01-10T09:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Chart- return all cell==0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673758#M55167</link>
      <description>&lt;P&gt;thanks! i use&amp;nbsp;TimeStamp and not _time.&lt;BR /&gt;how do i use it in my query?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| addinfo
| fieldformat info_min_time=strftime(info_min_time,"%c")
| fieldformat info_max_time=strftime(info_max_time,"%c")

| where strptime(TimeStamp,"%F %T.%3N")&amp;gt;info_min_time AND strptime(TimeStamp,"%F %T.%3N")&amp;lt;info_max_time

```Divide the time to intervals ```
| eval TimeStamp_epoch = strptime(TimeStamp, "%F %T")
| bin TimeStamp_epoch span=2d 
| eval interval_start = strftime(TimeStamp_epoch, "%F %T")
| eval interval_end = strftime(relative_time(TimeStamp_epoch, "+2d"), "%F %T") 
| eval interval_end = if(strptime(interval_end, "%F %T") &amp;gt; now(), strftime(now(), "%F %T"), interval_end)
| eval time_interval = interval_start . " to " . interval_end

| chart count(Name) over machine by time_interval&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Jan 2024 11:10:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673758#M55167</guid>
      <dc:creator>maayan</dc:creator>
      <dc:date>2024-01-10T11:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Chart- return all cell==0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673760#M55168</link>
      <description>&lt;P&gt;Use _time, then timechart will fill in the blanks for you&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval _time=strptime(TimeStamp, "%F %T")
| timechart span=2h count(Name) by machine&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Jan 2024 10:15:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673760#M55168</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-01-10T10:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Chart- return all cell==0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673771#M55169</link>
      <description>&lt;P&gt;thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i don't get all cells=0, no results when using the where clause (if i remove `where` i see that cells==0 exist) . i found a ticket: &lt;A href="https://community.splunk.com/t5/Splunk-Search/How-to-show-only-fields-over-0/m-p/164589" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-to-show-only-fields-over-0/m-p/164589&lt;/A&gt;&lt;BR /&gt;maybe i can't do it with timechat?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;| eval _time=strptime(TimeStamp, "%F %T")&lt;/P&gt;&lt;P&gt;| timechart span=12h count(Name) AS CountEvents by machine cont=t usenull=f useother=f&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;| where CountEvents=0&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 11:28:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673771#M55169</guid>
      <dc:creator>maayan</dc:creator>
      <dc:date>2024-01-10T11:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: Chart- return all cell==0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673773#M55170</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval _time=strptime(TimeStamp, "%F %T")

| timechart span=12h count(Name) AS CountEvents by machine cont=t usenull=f useother=f

| untable _time machine count
| where count == 0&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Jan 2024 11:40:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673773#M55170</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2024-01-10T11:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Chart- return all cell==0</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673775#M55171</link>
      <description>&lt;P&gt;i will do validations but i think that it works , thanks! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2024 11:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-return-all-cell-0/m-p/673775#M55171</guid>
      <dc:creator>maayan</dc:creator>
      <dc:date>2024-01-10T11:52:27Z</dc:date>
    </item>
  </channel>
</rss>

