<?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 chart command to show results for only days with values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586079#M204165</link>
    <description>&lt;P&gt;I received the same results... I may just try a different approach, i just feel like it shouldnt be this difficult&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 16:18:34 GMT</pubDate>
    <dc:creator>mchristian</dc:creator>
    <dc:date>2022-02-22T16:18:34Z</dc:date>
    <item>
      <title>How to use chart command to show results for only days with values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585621#M204039</link>
      <description>&lt;P&gt;So I'm trying to chart blocked traffic(IPs) over 7 days... the purpose to help locate beaconing traffic (this has worked at a previous job but im taking it a step further by only wanting to see days with values.... example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mchristian_0-1645546811822.png" style="width: 680px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18074iE6E070A3F24FC96F/image-dimensions/680x153?v=v2" width="680" height="153" role="button" title="mchristian_0-1645546811822.png" alt="mchristian_0-1645546811822.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I would want to see results that only show, All days with values... Query works just see alot of days with 0 data&lt;/P&gt;
&lt;P&gt;Here's my query:&lt;/P&gt;
&lt;P&gt;index="pan_logs" sourcetype="pan:traffic" dest_zone="Public" src="10.11.16*" action=blocked&lt;BR /&gt;| chart count(dest) by dest date_wday&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 17:15:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585621#M204039</guid>
      <dc:creator>mchristian</dc:creator>
      <dc:date>2022-02-22T17:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Using Chart command - Show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585623#M204040</link>
      <description>&lt;LI-CODE lang="markup"&gt;| foreach *
  [| eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=if(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=0,null(),&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;)]&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Feb 2022 18:47:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585623#M204040</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-17T18:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using Chart command - Show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585627#M204042</link>
      <description>&lt;P&gt;That didnt work, pretty much gave the same results, instead of 0 its giving a blank or NULL.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 19:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585627#M204042</guid>
      <dc:creator>mchristian</dc:creator>
      <dc:date>2022-02-17T19:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using Chart command - Show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585635#M204043</link>
      <description>&lt;P&gt;Is that not what you wanted?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2022 21:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585635#M204043</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-17T21:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using Chart command - Show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585701#M204066</link>
      <description>&lt;P&gt;No i would only want to see results that have values for all days, like example 2.2.2.2&lt;/P&gt;</description>
      <pubDate>Fri, 18 Feb 2022 12:55:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585701#M204066</guid>
      <dc:creator>mchristian</dc:creator>
      <dc:date>2022-02-18T12:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use chart command to show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585708#M204067</link>
      <description>&lt;LI-CODE lang="markup"&gt;| untable dest date_wday count
| eventstats min(count) as minimum by dest
| where minimum&amp;gt;0
| xyseries dest date_wday count&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Feb 2022 13:32:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585708#M204067</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-18T13:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to use chart command to show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585718#M204070</link>
      <description>&lt;P&gt;Give this a try&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="pan_logs" sourcetype="pan:traffic" dest_zone="Public" src="10.11.16*" action=blocked
| chart count(dest) by dest date_wday
| eval do_not_show=0
| foreach M* T* W* F* S* [| eval do_not_show= do_not_show+if('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'==0,1,0)] | where do_not_show=0 | fields - do_not_show&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 18 Feb 2022 15:02:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/585718#M204070</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-02-18T15:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use chart command to show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586066#M204155</link>
      <description>&lt;P&gt;Im still receiving 0 under days&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mchristian_0-1645544742715.png" style="width: 533px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/18073iCA40C51814357A3B/image-dimensions/533x100?v=v2" width="533" height="100" role="button" title="mchristian_0-1645544742715.png" alt="mchristian_0-1645544742715.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586066#M204155</guid>
      <dc:creator>mchristian</dc:creator>
      <dc:date>2022-02-22T15:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to use chart command to show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586070#M204157</link>
      <description>&lt;P&gt;that didnt produce any results&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586070#M204157</guid>
      <dc:creator>mchristian</dc:creator>
      <dc:date>2022-02-22T15:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to use chart command to show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586072#M204159</link>
      <description>&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="Dest IP,Monday,Tuesday,Wed,Thurs,Friday
1.1.1.1,5,3,0,0,0
2.2.2.2,3,3,3,3,3"
| multikv forceheader=1
| table Dest_IP Monday Tuesday Wed Thurs Friday
| untable Dest_IP date_wday count
| eventstats min(count) as minimum by Dest_IP
| where minimum&amp;gt;0
| xyseries Dest_IP date_wday count&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 15:58:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586072#M204159</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-22T15:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to use chart command to show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586075#M204161</link>
      <description>&lt;P&gt;Try this (accounting for case difference for field name)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="pan_logs" sourcetype="pan:traffic" dest_zone="Public" src="10.11.16*" action=blocked
| chart count(dest) by dest date_wday
| eval do_not_show=0
| foreach M* m* T* t* W* w*  F* f* S* s* [| eval do_not_show= do_not_show+if('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'==0,1,0)] | where do_not_show=0 | fields - do_not_show&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:01:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586075#M204161</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-02-22T16:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to use chart command to show results for only days with values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586079#M204165</link>
      <description>&lt;P&gt;I received the same results... I may just try a different approach, i just feel like it shouldnt be this difficult&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 16:18:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-use-chart-command-to-show-results-for-only-days-with/m-p/586079#M204165</guid>
      <dc:creator>mchristian</dc:creator>
      <dc:date>2022-02-22T16:18:34Z</dc:date>
    </item>
  </channel>
</rss>

