<?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 create a dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414364#M27237</link>
    <description>&lt;P&gt;@hiepdv4, just wanted to add that SVG can be displayed using SPL in splunk panel using &lt;A href="https://splunkbase.splunk.com/app/3815/"&gt;Scalable Vector Graphics - Custom Visualization&lt;/A&gt; also.&lt;/P&gt;</description>
    <pubDate>Sun, 19 Aug 2018 05:14:34 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2018-08-19T05:14:34Z</dc:date>
    <item>
      <title>How to create a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414358#M27231</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5595iB6B333B3198DF978/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Dear all.&lt;/P&gt;

&lt;P&gt;I need to create a Dashboard same as this picture.&lt;BR /&gt;
I do not use Splunk App for AWS.&lt;BR /&gt;
I want to display the format as a fraction result (Total login / Error Login).&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 03:40:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414358#M27231</guid>
      <dc:creator>hiepdv4</dc:creator>
      <dc:date>2018-08-17T03:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414359#M27232</link>
      <description>&lt;P&gt;@hiepdv4 you can use one of the following options depending on your Expertise&lt;/P&gt;

&lt;P&gt;1) HTML Panel with Custom Decoration (refer to &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;Splunk Dashboard Examples&lt;/A&gt; App)&lt;BR /&gt;
2) Single Value built in visualization or &lt;BR /&gt;
3) &lt;A href="https://splunkbase.splunk.com/app/3119/"&gt;Status Indicator Custom Visualization&lt;/A&gt; &lt;/P&gt;

&lt;P&gt;I am adding a run anywhere example in line with &lt;CODE&gt;&amp;lt;html&amp;gt;&lt;/CODE&gt; panel i.e. &lt;CODE&gt;option 1&lt;/CODE&gt; but using &lt;CODE&gt;SVG (Scalable Vector Graphic)&lt;/CODE&gt;. You can adjust to any other method like using only &lt;CODE&gt;html&lt;/CODE&gt; nodes with CSS style, &lt;CODE&gt;Canvas&lt;/CODE&gt; etc.&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5592i4F1875E569AF3523/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
In the dashboard I have used two independent searches i.e. search without view to set the required token for values and respective colors based on some cooked up SLA (you can use yours). I have used Search Event Handler &lt;CODE&gt;&amp;lt;done&amp;gt;&lt;/CODE&gt; with&lt;CODE&gt;&amp;lt;eval&amp;gt;&lt;/CODE&gt; to set these tokens and later used them in &lt;CODE&gt;&amp;lt;svg&amp;gt;&lt;/CODE&gt; added to &lt;CODE&gt;&amp;lt;html&amp;gt;&lt;/CODE&gt; panel.&lt;BR /&gt;
PS: Simple XML CSS extension has been applied using &lt;CODE&gt;&amp;lt;style&amp;gt;&lt;/CODE&gt; section and sometimes &lt;CODE&gt;inline&lt;/CODE&gt; to svg elements.&lt;BR /&gt;
Splunk's _internal index has been used to generate some cooked up numbers to be displayed. Please replace with your actual queries. &lt;/P&gt;

&lt;P&gt;Following is the Simple XML Code, Please try out and confirm:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;User Activity&amp;lt;/label&amp;gt;
  &amp;lt;!-- Independent Search for Activity Error --&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;index="_internal" sourcetype=splunkd_ui_access status=*
| stats count as Total count(eval(status!="200")) as Error&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;condition match="$job.resultCount$!=0"&amp;gt;
        &amp;lt;eval token="tokTotal"&amp;gt;if(isnull($result.Total$) OR ($result.Total$==0),0,$result.Total$)&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="tokTotalColor"&amp;gt;case($tokTotal$&amp;gt;0,"black",true(),"red")&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="tokError"&amp;gt;if(isnull($result.Error$) OR ($result.Error$==0),0,$result.Error$)&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="tokErrorColor"&amp;gt;case($tokError$==0,"green",$tokError$&amp;gt;0 AND $tokError$&amp;lt;=10,"orange",$tokError$&amp;gt;10,"red",true(),"grey")&amp;lt;/eval&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;condition&amp;gt;
        &amp;lt;set token="tokTotal"&amp;gt;0&amp;lt;/set&amp;gt;
        &amp;lt;set token="tokError"&amp;gt;0&amp;lt;/set&amp;gt;
        &amp;lt;set token="tokTotalColor"&amp;gt;red&amp;lt;/set&amp;gt;
        &amp;lt;set token="tokErrorColor"&amp;gt;grey&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;!-- Independent Search for Method Count --&amp;gt;
  &amp;lt;search&amp;gt;
    &amp;lt;query&amp;gt;index="_internal" sourcetype=splunkd_ui_access method=*
| stats count as Total count(eval(method!="POST")) as Post&amp;lt;/query&amp;gt;
    &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
    &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
    &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
    &amp;lt;done&amp;gt;
      &amp;lt;condition match="$job.resultCount$!=0"&amp;gt;
        &amp;lt;eval token="tokTotalMethod"&amp;gt;if(isnull($result.Total$) OR ($result.Total$==0),0,$result.Total$)&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="tokTotalMethodColor"&amp;gt;case($tokTotalMethod$&amp;gt;0,"black",true(),"red")&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="tokPost"&amp;gt;if(isnull($result.Post$) OR ($result.Post$==0),0,$result.Post$)&amp;lt;/eval&amp;gt;
        &amp;lt;eval token="tokPostColor"&amp;gt;case($tokPost$==0,"green",$tokPost$&amp;gt;0 AND $tokPost$&amp;lt;=10,"orange",$tokPost$&amp;gt;10,"red",true(),"grey")&amp;lt;/eval&amp;gt;
      &amp;lt;/condition&amp;gt;
      &amp;lt;condition&amp;gt;
        &amp;lt;set token="tokTotalMethod"&amp;gt;0&amp;lt;/set&amp;gt;
        &amp;lt;set token="tokPost"&amp;gt;0&amp;lt;/set&amp;gt;
        &amp;lt;set token="tokTotalMethodColor"&amp;gt;red&amp;lt;/set&amp;gt;
        &amp;lt;set token="tokPostColor"&amp;gt;grey&amp;lt;/set&amp;gt;
      &amp;lt;/condition&amp;gt;
    &amp;lt;/done&amp;gt;
  &amp;lt;/search&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Activity Error&amp;lt;/title&amp;gt;
      &amp;lt;html&amp;gt;
          &amp;lt;style&amp;gt;
            svg{
              position: relative;
              left: 30%;
            }
            svg text,svg line{
              font-weight:bold;
              font-size:200%;
            }
            h2.panel-title {
              background: grey;
              color: white;
              font-weight: bold;
              text-align: center;            
            }
          &amp;lt;/style&amp;gt;
          &amp;lt;div&amp;gt;
            &amp;lt;svg&amp;gt;
              &amp;lt;text x="10" y="20" fill="$tokTotalColor$"&amp;gt;$tokTotal$&amp;lt;/text&amp;gt;
              &amp;lt;line x1="10" y1="30" x2="80" y2="30" style="stroke:black;stroke-width:2"/&amp;gt;
              &amp;lt;text x="10" y="50" fill="$tokErrorColor$"&amp;gt;$tokError$&amp;lt;/text&amp;gt;
            &amp;lt;/svg&amp;gt;
          &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Method Error&amp;lt;/title&amp;gt;
      &amp;lt;html&amp;gt;
          &amp;lt;div&amp;gt;
            &amp;lt;svg&amp;gt;
              &amp;lt;text x="10" y="20" fill="$tokTotalMethodColor$"&amp;gt;$tokTotalMethod$&amp;lt;/text&amp;gt;
              &amp;lt;line x1="10" y1="30" x2="80" y2="30" style="stroke:black;stroke-width:2"/&amp;gt;
              &amp;lt;text x="10" y="50" fill="$tokPostColor$"&amp;gt;$tokPost$&amp;lt;/text&amp;gt;
            &amp;lt;/svg&amp;gt;
          &amp;lt;/div&amp;gt;
      &amp;lt;/html&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Activity Stats&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" sourcetype=splunkd_ui_access status=*
        | stats count by status&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;title&amp;gt;Method Stats&amp;lt;/title&amp;gt;
      &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index="_internal" sourcetype=splunkd_ui_access method=*
        | stats count by method&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-60m@m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Aug 2018 06:11:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414359#M27232</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-17T06:11:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414360#M27233</link>
      <description>&lt;P&gt;Dear Niket Nilay&lt;/P&gt;

&lt;P&gt;Sorry for bother you.&lt;BR /&gt;
I have issue at line 15 &lt;BR /&gt;
Please support me.&lt;BR /&gt;
P.S: I'm sorry, I newbie&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/5593iF8AF409363B8CAC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 09:33:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414360#M27233</guid>
      <dc:creator>hiepdv4</dc:creator>
      <dc:date>2018-08-17T09:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414361#M27234</link>
      <description>&lt;P&gt;Dear Niket Nilay&lt;/P&gt;

&lt;P&gt;I have feedback to you below.&lt;BR /&gt;
Please support me check it&lt;BR /&gt;
Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 09:34:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414361#M27234</guid>
      <dc:creator>hiepdv4</dc:creator>
      <dc:date>2018-08-17T09:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414362#M27235</link>
      <description>&lt;P&gt;@hiepdv4 &lt;BR /&gt;
keep below eval in place of that.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;eval token="tokErrorColor"&amp;gt; case($tokError$==0,"green",($tokError$&amp;amp;gt;0 AND $tokError$&amp;amp;lt;=10),"orange",$tokError$&amp;gt;10,"red",true(),"grey")&amp;lt;/eval&amp;gt;
       &amp;lt;eval token="tokPostColor"&amp;gt;case($tokPost$==0,"green",$tokPost$&amp;amp;gt;0 AND $tokPost$&amp;amp;lt;=10,"orange",$tokPost$&amp;amp;gt;10,"red",true(),"grey")&amp;lt;/eval&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Aug 2018 11:11:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414362#M27235</guid>
      <dc:creator>pal_sumit1</dc:creator>
      <dc:date>2018-08-17T11:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414363#M27236</link>
      <description>&lt;P&gt;@hiepdv4 , as mentioned by @pal_sumit1, you would need to escape less than &lt;CODE&gt;&amp;lt;&lt;/CODE&gt; and greater than &lt;CODE&gt;&amp;gt;&lt;/CODE&gt; characters in Simple XML code using XML Escape characters i.e. &lt;CODE&gt;&amp;amp; lt ;&lt;/CODE&gt; and &lt;CODE&gt;&amp;amp; gt ;&lt;/CODE&gt;. Splunk Answer replaces them with original character instead of escape characters. (I have added spaces due to the same)&lt;/P&gt;

&lt;P&gt;&lt;A href="https://www.advancedinstaller.com/user-guide/xml-escaped-chars.html"&gt;https://www.advancedinstaller.com/user-guide/xml-escaped-chars.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Aug 2018 14:02:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414363#M27236</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-17T14:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414364#M27237</link>
      <description>&lt;P&gt;@hiepdv4, just wanted to add that SVG can be displayed using SPL in splunk panel using &lt;A href="https://splunkbase.splunk.com/app/3815/"&gt;Scalable Vector Graphics - Custom Visualization&lt;/A&gt; also.&lt;/P&gt;</description>
      <pubDate>Sun, 19 Aug 2018 05:14:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414364#M27237</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-19T05:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414365#M27238</link>
      <description>&lt;P&gt;If you are planning to use SVG it might also be worth considering "Scalable Vector Graphics - Custom Visualization" app &lt;A href="https://splunkbase.splunk.com/app/3815/"&gt;https://splunkbase.splunk.com/app/3815/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;It contains few examples of passing tokens into SVG.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 08:01:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414365#M27238</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-09-04T08:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414366#M27239</link>
      <description>&lt;P&gt;@msivill I did point it out in one of my comments above. Great app for integrating SVG &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 08:55:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414366#M27239</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-09-04T08:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414367#M27240</link>
      <description>&lt;P&gt;Doh, I missed your comment. Thanks for the shout-out.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Sep 2018 08:59:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-a-dashboard/m-p/414367#M27240</guid>
      <dc:creator>msivill_splunk</dc:creator>
      <dc:date>2018-09-04T08:59:22Z</dc:date>
    </item>
  </channel>
</rss>

