<?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 do I create a dashboard visualization that is single pane, 4 statuses? : (Stopping, Stopped, Starting, Started) in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-dashboard-visualization-that-is-single-pane-4/m-p/447466#M29416</link>
    <description>&lt;P&gt;I'm not clear on exactly what you're looking for, but maybe it's one of these two possabilities:&lt;BR /&gt;
You are looking for the number of times you want to know each service status has occurred. If so, then look at the following run anywhere example that will pull the number of events for some sourcetypes in Splunk's _internal index.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype="*d_access" OR sourcetype="*d_ui_access" OR sourcetype="*k_web_access" earliest="-1m@m" latest="@m"
| stats count BY sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After running this, go to the Visualization tab, select "Single Value", then click "Trellis" and you would get the count for each sourcetype in one visualization for a single panel in your dashboard.&lt;/P&gt;

&lt;P&gt;If you meant you wanted the single value to indicate the current status based on whenever the search was ran, and one of the 4 types of service_status would be shown. Then we can use a case statement to rename the event as we need to match it, and get the last event. This is the most recent status.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype="*d_access" OR sourcetype="*d_ui_access" OR sourcetype="*k_web_access" earliest="-1m@m" latest="@m" 
| eval sourcetype=case(
    sourcetype LIKE "%ui%","UI was the last event",
    sourcetype LIKE "%web%","WEB was the last event",
    sourcetype LIKE "%","splunkd_access was the last event"
    ) 
| stats last(sourcetype)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you go to the visualization tab, select "Single Value". You could then use this as a panel, where the status would change based on the timeframe the search was ran.&lt;/P&gt;</description>
    <pubDate>Mon, 10 Sep 2018 20:44:23 GMT</pubDate>
    <dc:creator>efavreau</dc:creator>
    <dc:date>2018-09-10T20:44:23Z</dc:date>
    <item>
      <title>How do I create a dashboard visualization that is single pane, 4 statuses? : (Stopping, Stopped, Starting, Started)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-dashboard-visualization-that-is-single-pane-4/m-p/447465#M29415</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;

&lt;P&gt;Working on one PoC and week in search commands &lt;BR /&gt;
After extracting fields i get four search strings as given below for an individual service status &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;index=* sourcetype=* service_status="*Core Stopping"&lt;/LI&gt;
&lt;LI&gt;index=* sourcetype=* service_status="*Core Stopped"&lt;/LI&gt;
&lt;LI&gt;index=* sourcetype=* service_status="*Core Starting"&lt;/LI&gt;
&lt;LI&gt;index=* sourcetype=* service_status="*Core Started"&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;I want to create a dashboard (visualization of the service status) (Single pane 4 status):  (Stopping, Stopped, Starting, Started)&lt;/P&gt;

&lt;P&gt;please help&lt;/P&gt;

&lt;P&gt;Thanks and Appreciated&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 15:20:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-dashboard-visualization-that-is-single-pane-4/m-p/447465#M29415</guid>
      <dc:creator>gaurav_ramteke</dc:creator>
      <dc:date>2018-09-10T15:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a dashboard visualization that is single pane, 4 statuses? : (Stopping, Stopped, Starting, Started)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-dashboard-visualization-that-is-single-pane-4/m-p/447466#M29416</link>
      <description>&lt;P&gt;I'm not clear on exactly what you're looking for, but maybe it's one of these two possabilities:&lt;BR /&gt;
You are looking for the number of times you want to know each service status has occurred. If so, then look at the following run anywhere example that will pull the number of events for some sourcetypes in Splunk's _internal index.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype="*d_access" OR sourcetype="*d_ui_access" OR sourcetype="*k_web_access" earliest="-1m@m" latest="@m"
| stats count BY sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After running this, go to the Visualization tab, select "Single Value", then click "Trellis" and you would get the count for each sourcetype in one visualization for a single panel in your dashboard.&lt;/P&gt;

&lt;P&gt;If you meant you wanted the single value to indicate the current status based on whenever the search was ran, and one of the 4 types of service_status would be shown. Then we can use a case statement to rename the event as we need to match it, and get the last event. This is the most recent status.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype="*d_access" OR sourcetype="*d_ui_access" OR sourcetype="*k_web_access" earliest="-1m@m" latest="@m" 
| eval sourcetype=case(
    sourcetype LIKE "%ui%","UI was the last event",
    sourcetype LIKE "%web%","WEB was the last event",
    sourcetype LIKE "%","splunkd_access was the last event"
    ) 
| stats last(sourcetype)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you go to the visualization tab, select "Single Value". You could then use this as a panel, where the status would change based on the timeframe the search was ran.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2018 20:44:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-dashboard-visualization-that-is-single-pane-4/m-p/447466#M29416</guid>
      <dc:creator>efavreau</dc:creator>
      <dc:date>2018-09-10T20:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do I create a dashboard visualization that is single pane, 4 statuses? : (Stopping, Stopped, Starting, Started)</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-dashboard-visualization-that-is-single-pane-4/m-p/447467#M29417</link>
      <description>&lt;P&gt;Thank you efavreau&lt;/P&gt;

&lt;P&gt;This helped me and its working now its just me to play around the colors&lt;BR /&gt;
Much Appreciate &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2018 11:50:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-create-a-dashboard-visualization-that-is-single-pane-4/m-p/447467#M29417</guid>
      <dc:creator>gaurav_ramteke</dc:creator>
      <dc:date>2018-09-11T11:50:12Z</dc:date>
    </item>
  </channel>
</rss>

