<?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: Dashboard Visualization alert in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/551536#M38131</link>
    <description>&lt;LI-CODE lang="markup"&gt;|tstats count where index=prod_s3  sourcetype=WinEventLog:Security (host=host1 OR host=host2 OR host=host3 OR host=host4 ) by host 
| append [
  | makeresults
  | eval host=split("host1,host2,host3,host4",",")
  | mvexpand host
  | eval count=0
  | table host count
  ]
|stats sum(count) as count by host
|stats min(count) as count
| eval unit=if(count&amp;gt;0, "🗸", "⚠")&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 14 May 2021 06:00:50 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2021-05-14T06:00:50Z</dc:date>
    <item>
      <title>Dashboard Visualization alert</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/551516#M38127</link>
      <description>&lt;P&gt;I&amp;nbsp; have found a dashboard visualisation where we are using eyes on glass alert when one of the hosts is not being ingested into Splunk.&lt;/P&gt;&lt;P&gt;I have found out (the hard way) that the below query will of course never alert on a zero count because if one of the hosts is NOT ingesting, it does not return a value.&lt;/P&gt;&lt;P&gt;|tstats count where index=prod_s3&amp;nbsp; sourcetype=WinEventLog:Security (host=host1 OR host=host2 OR host=host3 OR host=host4 ) by host&amp;nbsp;|stats min(count) as count | eval unit=if(count&amp;gt;0, "🗸", "⚠")&lt;/P&gt;&lt;P&gt;Any suggestions as to a better way to phrase this statement???&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 01:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/551516#M38127</guid>
      <dc:creator>auzark</dc:creator>
      <dc:date>2021-05-14T01:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Visualization alert</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/551536#M38131</link>
      <description>&lt;LI-CODE lang="markup"&gt;|tstats count where index=prod_s3  sourcetype=WinEventLog:Security (host=host1 OR host=host2 OR host=host3 OR host=host4 ) by host 
| append [
  | makeresults
  | eval host=split("host1,host2,host3,host4",",")
  | mvexpand host
  | eval count=0
  | table host count
  ]
|stats sum(count) as count by host
|stats min(count) as count
| eval unit=if(count&amp;gt;0, "🗸", "⚠")&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 14 May 2021 06:00:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/551536#M38131</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-14T06:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Visualization alert</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/551549#M38135</link>
      <description>&lt;P&gt;Hi ITWhisperer,&lt;/P&gt;&lt;P&gt;I will test this out when I get back to work next Monday.&amp;nbsp; In the mean time can you explain how this steps thru?&amp;nbsp; &amp;nbsp;(ie...each of the pipe's following the append)&lt;/P&gt;&lt;P&gt;The Dashboard that this panel belongs to refreshes every 20 minutes, but the spl query for this panel looks back 1/2 an hour.&lt;/P&gt;&lt;P&gt;Much appreciated...&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 07:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/551549#M38135</guid>
      <dc:creator>auzark</dc:creator>
      <dc:date>2021-05-14T07:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Visualization alert</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/551552#M38137</link>
      <description>&lt;OL&gt;&lt;LI&gt;| append [ - appends the events generated by the [subsearch] to the existing pipeline of events&lt;/LI&gt;&lt;LI&gt;| makeresults - starts a set of events&lt;/LI&gt;&lt;LI&gt;| eval host=split("host1,host2,host3,host4",",") - creates a multi-value field with each of the hostnames you are interested in&lt;/LI&gt;&lt;LI&gt;| mvexpand host - expands the mv field so that there is one event per host&lt;/LI&gt;&lt;LI&gt;| eval count=0 - sets the count to zero for each event (host)&lt;/LI&gt;&lt;LI&gt;| table host count - sets the fields to be returned by the subsearch&lt;/LI&gt;&lt;LI&gt;] - completes the subsearch&lt;/LI&gt;&lt;LI&gt;|stats sum(count) as count by host - adds zero to the count for all the hosts&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now you will have a minimum of zero if a host didn't exist in the first search.&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 07:43:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/551552#M38137</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-14T07:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Visualization alert</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/552121#M38203</link>
      <description>&lt;P&gt;Hi ITWhisperer,&lt;/P&gt;&lt;P&gt;My apologies for the slow response.&amp;nbsp; Here is what I found running the code you supplied.&lt;/P&gt;&lt;P&gt;The returned results are a count for the 4 different hosts wit count, followed by the same hosts with a count =0. the minimum is then applied and the returned result is = 0 and always displays the red warning sign.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to return the green tick if the min host of the 4 hosts is still &amp;gt; 0.&amp;nbsp; and only return the red warning if one of the hosts does not appear in the original search (ie... ingested events = 0).&amp;nbsp; Does that make sense?&lt;/P&gt;&lt;P&gt;Returned/reported data.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;&lt;STRONG&gt;Host Count&lt;/STRONG&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Host1 299&lt;BR /&gt;Host2 366&lt;BR /&gt;Host3 382&lt;BR /&gt;Host4 319&lt;BR /&gt;Host1 0&lt;BR /&gt;Host2 0&lt;BR /&gt;Host3 0&lt;BR /&gt;Host4 0&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 01:57:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/552121#M38203</guid>
      <dc:creator>auzark</dc:creator>
      <dc:date>2021-05-19T01:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Visualization alert</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/552139#M38207</link>
      <description>&lt;P&gt;It doesn't make sense&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;|stats sum(count) as count by host&lt;/LI-CODE&gt;&lt;P&gt;should reduce it to one line per host - having said that, you might appear to get hosts repeated if there are differences such as trailing spaces or misspellings.&lt;/P&gt;</description>
      <pubDate>Wed, 19 May 2021 07:16:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/552139#M38207</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2021-05-19T07:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: Dashboard Visualization alert</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/552327#M38235</link>
      <description>&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;I have taken a different approach and am now counting the hosts currently ingesting into Splunk and drill down from there to work out which host is not ingesting&lt;/P&gt;&lt;P&gt;| tstats dc(host) AS hostOKCount where index=prod_s3 sourcetype=WinEventLog:Security (host=host1 OR host=host2 OR host=host3 OR host=host4)&lt;BR /&gt;| eval unit=if(hostOKCount&amp;amp;gt;3, "🗸", "⚠")&amp;lt;/query&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 May 2021 06:50:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Visualization-alert/m-p/552327#M38235</guid>
      <dc:creator>auzark</dc:creator>
      <dc:date>2021-05-20T06:50:16Z</dc:date>
    </item>
  </channel>
</rss>

