<?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: Display ALL eventtypes in a timechart, including the ALL ZERO count eventtypes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-all-eventtypes-in-a-timechart-including-the-all/m-p/628119#M218202</link>
    <description>&lt;P&gt;Before the rename, have you tried inserting this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fillnull value=0 office1 office2 office3 office4 office5 office6&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 24 Jan 2023 11:17:08 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2023-01-24T11:17:08Z</dc:date>
    <item>
      <title>How to display all eventtypes in a timechart, including the all zero count eventtypes?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-all-eventtypes-in-a-timechart-including-the-all/m-p/628114#M218201</link>
      <description>&lt;P&gt;I have six &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;eventtype&lt;/FONT&gt;&lt;/STRONG&gt;'s that each check Juniper router logs for an Interface bounce (an up/down event). These are working good. Here is an example, the other five are just variations of this (different routers and interfaces):&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;sourcetype="syslog" host_rdns="lo0.router1.domain.com" AND SNMP AND "xe-0/0/1" NOT "0/3/1.*"&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;I am doing the following search during &lt;STRONG&gt;business hours&lt;/STRONG&gt; (08:00 to 20:30/7days a week) as a&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;timechart&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;that spans one day, and displays each &lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;eventtype&lt;/FONT&gt;&lt;/STRONG&gt; as the "office#" site name with how many flaps per hour occurred during the business hours:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;sourcetype="syslog" (eventtype="office1" OR eventtype="office2" OR eventtype="office3" OR eventtype="office4" OR eventtype="office5" OR eventtype="office6") NOT UI_CMDLINE&lt;/STRONG&gt; | eval date_hourmin=strftime(_time, "%H%M") | eval date_numday = strftime(_time, "%w") | eval date_dow=strftime(_time, "%A") | eval full_datew = _time." ".date_dow| eval mytime=strftime(_time, "%Y-%m-%d, %A") | &lt;STRONG&gt;search (date_hourmin&amp;gt;=0800 date_hourmin&amp;lt;=2030 AND date_numday&amp;gt;=0 date_numday&amp;lt;=6)&lt;/STRONG&gt; | &lt;STRONG&gt;timechart span=1d count as "Interface Flap" by eventtype&lt;/STRONG&gt; | eval time=strftime(_time, "%m/%d/%Y, %A") | fields - _time | rename office1 as "Home Office", office2 as "Seattle", office3 as "Portland", office4 as "Dallas", office5 as "Chicago", office6 as "New York", time as "Day, Date"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is working as I want and expect it to, like so:&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Splunk-timechart-business_hours.png" style="width: 653px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/23515i3851FD327D21B4E9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Splunk-timechart-business_hours.png" alt="Splunk-timechart-business_hours.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But&amp;nbsp;&lt;U&gt;I cannot figure out&lt;/U&gt; how to display &lt;STRONG&gt;all six &lt;FONT face="courier new,courier"&gt;eventtype&lt;/FONT&gt;'s&lt;/STRONG&gt; (sites)&amp;nbsp;&lt;STRONG&gt;at all times&lt;/STRONG&gt;, &lt;STRONG&gt;&lt;U&gt;including the &lt;FONT face="courier new,courier"&gt;eventtype&lt;/FONT&gt;'s with&amp;nbsp;ZERO counts&lt;/U&gt;&lt;/STRONG&gt;. I've tried everything I can think of - &lt;FONT face="courier new,courier"&gt;fillnull&lt;/FONT&gt;, adding fake results (maybe I am doing that wrong?) but I cannot figure out what I am missing/doing wrong.&lt;/P&gt;
&lt;P&gt;Can someone provide pointers for the best way to address this issue?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 15:26:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-all-eventtypes-in-a-timechart-including-the-all/m-p/628114#M218201</guid>
      <dc:creator>rprior</dc:creator>
      <dc:date>2023-01-24T15:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Display ALL eventtypes in a timechart, including the ALL ZERO count eventtypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-all-eventtypes-in-a-timechart-including-the-all/m-p/628119#M218202</link>
      <description>&lt;P&gt;Before the rename, have you tried inserting this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| fillnull value=0 office1 office2 office3 office4 office5 office6&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Jan 2023 11:17:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-all-eventtypes-in-a-timechart-including-the-all/m-p/628119#M218202</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2023-01-24T11:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Display ALL eventtypes in a timechart, including the ALL ZERO count eventtypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-all-eventtypes-in-a-timechart-including-the-all/m-p/628120#M218203</link>
      <description>&lt;P&gt;Only moments later I found this Splunk forum post = &lt;A href="https://community.splunk.com/t5/Splunk-Search/how-to-use-timechart-count-to-return-0-when-value-is-null/m-p/344266" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/how-to-use-timechart-count-to-return-0-when-value-is-null/m-p/344266&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I added the following right after the &lt;FONT face="courier new,courier"&gt;timechart&lt;/FONT&gt; portion&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;table _time, office1, office2, office3, office4, office5, office6, time | fillnull office1, office2, office3, office4, office5, office6&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The total search is working with this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;FONT face="courier new,courier"&gt;sourcetype="syslog" (eventtype="office1" OR eventtype="office2" OR eventtype="office3" OR eventtype="office4" OR eventtype="office5" OR eventtype="office6") NOT UI_CMDLINE | eval date_hourmin=strftime(_time, "%H%M") | eval date_numday = strftime(_time, "%w") | eval date_dow=strftime(_time, "%A") | eval full_datew = _time." ".date_dow| eval mytime=strftime(_time, "%Y-%m-%d, %A") | search (date_hourmin&amp;gt;=0800 date_hourmin&amp;lt;=2030 AND date_numday&amp;gt;=0 date_numday&amp;lt;=6) | timechart span=1d count as "Interface Flap" by eventtype | &lt;STRONG&gt;table _time, office1, office2, office3, office4, office5, office6, time | fillnull office1, office2, office3, office4, office5, office6&lt;/STRONG&gt; | eval time=strftime(_time, "%m/%d/%Y, %A") | fields - _time | rename office1 as "Home Office", office2 as "Seattle", office3 as "Portland", office4 as "Dallas", office5 as "Chicago", office6 as "New York", time as "Day, Date"&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 11:24:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-all-eventtypes-in-a-timechart-including-the-all/m-p/628120#M218203</guid>
      <dc:creator>rprior</dc:creator>
      <dc:date>2023-01-24T11:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display ALL eventtypes in a timechart, including the ALL ZERO count eventtypes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-all-eventtypes-in-a-timechart-including-the-all/m-p/628143#M218207</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;beautiful! Your suggestion worked perfectly too! Thank you very much, it works great as well.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 13:44:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-all-eventtypes-in-a-timechart-including-the-all/m-p/628143#M218207</guid>
      <dc:creator>rprior</dc:creator>
      <dc:date>2023-01-24T13:44:53Z</dc:date>
    </item>
  </channel>
</rss>

