<?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 How to create charts for each host dynamically in a dashboard using simple xml? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-charts-for-each-host-dynamically-in-a-dashboard/m-p/124310#M7313</link>
    <description>&lt;P&gt;Hello everyone.&lt;/P&gt;

&lt;P&gt;I have a very simple search which I use to create a 100% Stack Bar showing the availability of a specific host:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=myhostname index=availability sourcetype="avail" | stats avg(unavail) AS Unavailability, avg(avail) AS Availability by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know I could just replace the "myhostname" with "*" and create one graph with several host entries displaying their availability, but what I'd like to do is create one graph for each host on a Dashboard dynamically, that is, if a new server starts to send logs do splunk, this dashboard will automatically create a new graph containing it's availability.&lt;/P&gt;

&lt;P&gt;And I need to do this using Simple XML (if possible), my access to our Splunk server is currently limited. So far, I found the "depends" property which I can use with the "chart" element, which means that this chart will only be displayed if the tokens in the "depends" property actually exists, but I could figure out a way to use it.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 02 Feb 2015 12:30:55 GMT</pubDate>
    <dc:creator>rodrigorenie</dc:creator>
    <dc:date>2015-02-02T12:30:55Z</dc:date>
    <item>
      <title>How to create charts for each host dynamically in a dashboard using simple xml?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-charts-for-each-host-dynamically-in-a-dashboard/m-p/124310#M7313</link>
      <description>&lt;P&gt;Hello everyone.&lt;/P&gt;

&lt;P&gt;I have a very simple search which I use to create a 100% Stack Bar showing the availability of a specific host:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host=myhostname index=availability sourcetype="avail" | stats avg(unavail) AS Unavailability, avg(avail) AS Availability by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I know I could just replace the "myhostname" with "*" and create one graph with several host entries displaying their availability, but what I'd like to do is create one graph for each host on a Dashboard dynamically, that is, if a new server starts to send logs do splunk, this dashboard will automatically create a new graph containing it's availability.&lt;/P&gt;

&lt;P&gt;And I need to do this using Simple XML (if possible), my access to our Splunk server is currently limited. So far, I found the "depends" property which I can use with the "chart" element, which means that this chart will only be displayed if the tokens in the "depends" property actually exists, but I could figure out a way to use it.&lt;/P&gt;

&lt;P&gt;Any ideas?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 12:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-charts-for-each-host-dynamically-in-a-dashboard/m-p/124310#M7313</guid>
      <dc:creator>rodrigorenie</dc:creator>
      <dc:date>2015-02-02T12:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to create charts for each host dynamically in a dashboard using simple xml?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-charts-for-each-host-dynamically-in-a-dashboard/m-p/124311#M7314</link>
      <description>&lt;P&gt;Have you tried using multi-series mode?  Just set multi-series mode to "yes" in your chart properties and Splunk will make a different chart for each of the field you are splitting by (host in your case).  This won't give each chart its own panel, but it will give a chart for each host.  Is that close enough?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 19:49:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-charts-for-each-host-dynamically-in-a-dashboard/m-p/124311#M7314</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2015-02-02T19:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to create charts for each host dynamically in a dashboard using simple xml?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-charts-for-each-host-dynamically-in-a-dashboard/m-p/124312#M7315</link>
      <description>&lt;P&gt;Oops, doesn't quite work they way I thought.  Disregard this answer.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Feb 2015 19:54:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-create-charts-for-each-host-dynamically-in-a-dashboard/m-p/124312#M7315</guid>
      <dc:creator>wpreston</dc:creator>
      <dc:date>2015-02-02T19:54:22Z</dc:date>
    </item>
  </channel>
</rss>

