<?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: Chart Overlay and Different Graph Type in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81184#M4376</link>
    <description>&lt;P&gt;try something like this - I have no idea if it works - I dont have the app for *nix :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=os host=x38dev10 source=cpu OR sourcetype=ps &lt;BR /&gt;
| multikv &lt;BR /&gt;
| search USER=tomcat OR USER=redis OR source=cpu &lt;BR /&gt;
| eval metric=(if(sourcetype=="ps",USER."/".COMMAND,"CPU"))&lt;BR /&gt;
| timechart max(pctUser) as User, avg(pctSystem) as System avg(pctCPU) as proc by metric&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2013 18:01:31 GMT</pubDate>
    <dc:creator>jonuwz</dc:creator>
    <dc:date>2013-04-02T18:01:31Z</dc:date>
    <item>
      <title>Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81179#M4371</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We are working on a dashboard panel right now that is going to show overall CPU utilization for user/system but want to overlay 2 processes that we want to monitor for utilization as well. The data is coming back fine but ideally we would like the User/System graph to be one graph ie. stacked area and the process utilization to be in the form of a line chart. Any ideas? &lt;/P&gt;

&lt;P&gt;Here is the search we are using:&lt;BR /&gt;
index=os source=cpu host=x38dev10 | multikv fields | timechart span=60s max(pctUser) as User, avg(pctSystem) as System by host | appendcols [search index="os" sourcetype="ps" host=x38dev10 | multikv fields pctCPU, COMMAND, USER  | eval process=USER."/".COMMAND | search USER=tomcat OR redis | timechart  span=60s avg(pctCPU) by process useother="f"]&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 20:11:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81179#M4371</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-04-01T20:11:08Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81180#M4372</link>
      <description>&lt;P&gt;Here's an example :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;
&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;SuperChart&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;chart&amp;gt;
      &amp;lt;searchName&amp;gt;SuperChartSearch&amp;lt;/searchName&amp;gt;
      &amp;lt;title&amp;gt;SuperChart/title&amp;gt;

      &amp;lt;!-- set up alternative palatte for stacked chart, transparancy makes the line chart more visible --&amp;gt;
      &amp;lt;option name="charting.transparentBrushPalette"&amp;gt;solidFill&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.transparentBrushPalette.colorPalette"&amp;gt;@colorPalette&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.transparentBrushPalette.alpha"&amp;gt;0.7&amp;lt;/option&amp;gt;

      &amp;lt;!-- set chart to use columns 0,1,2,3 where @data is the original "cube", and 0 is the time--&amp;gt;
      &amp;lt;option name="charting.data1"&amp;gt;view&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.data1.table"&amp;gt;@data&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.data1.columns"&amp;gt;[0,1,2,3]&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart.data"&amp;gt;@data1&amp;lt;/option&amp;gt;

      &amp;lt;!-- set chart2 to use columns 0,4,5, where 0 is time, 4 + 5 are data --&amp;gt;
      &amp;lt;option name="charting.data2"&amp;gt;view&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.data2.table"&amp;gt;@data&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.data2.columns"&amp;gt;[0,4,5]&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart2.data"&amp;gt;@data2&amp;lt;/option&amp;gt;

      &amp;lt;!-- splunk doesnt suppory 2 Y axis, so we have to clone --&amp;gt;
      &amp;lt;option name="charting.axisY2"&amp;gt;#axisY&amp;lt;/option&amp;gt;                 &amp;lt;!-- clone the Yaxis into axisY2 --&amp;gt;
      &amp;lt;option name="charting.axisLabelsY2"&amp;gt;#axisLabelsY&amp;lt;/option&amp;gt;     &amp;lt;!-- clone the Yaxis Labels --&amp;gt;
      &amp;lt;option name="charting.axisLabelsY2.axis"&amp;gt;@axisY2&amp;lt;/option&amp;gt;     &amp;lt;!-- associate the new Y2 axis-labels with the Y2 axis --&amp;gt;

      &amp;lt;!--create the 1st chart --&amp;gt;
      &amp;lt;option name="charting.chart"&amp;gt;column&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart.columnBrushPalette"&amp;gt;@transparentBrushPalette&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart.stackMode"&amp;gt;stacked&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart.useAbsoluteSpacing"&amp;gt;True&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart.columnSpacing"&amp;gt;20&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart.columnAlignment"&amp;gt;.5&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.axisTitleY.text"&amp;gt;CPU&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.axisLabelsY.placement"&amp;gt;left&amp;lt;/option&amp;gt;

      &amp;lt;!--create the 2nd chart --&amp;gt;
      &amp;lt;option name="charting.chart2"&amp;gt;line&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart2.nullValueMode"&amp;gt;zero&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.chart2.axisY"&amp;gt;@axisY2&amp;lt;/option&amp;gt;          &amp;lt;!-- the Yaxis of chart 2 is a link to charting.axisY2 --&amp;gt;
      &amp;lt;option name="charting.axisTitleY2"&amp;gt;axisTitle&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.axisTitleY2.text"&amp;gt;Memory&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.axisLabelsY2.placement"&amp;gt;right&amp;lt;/option&amp;gt;

      &amp;lt;!-- throw the structure to layout --&amp;gt;
      &amp;lt;option name="charting.layout.charts"&amp;gt;[@chart,@chart2]&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.layout.axisLabels"&amp;gt;[@axisLabelsX,@axisLabelsY,@axisLabelsY2]&amp;lt;/option&amp;gt;
      &amp;lt;option name="charting.layout.axisTitles"&amp;gt;[@axisTitleX,@axisTitleY,@axisTitleY2]&amp;lt;/option&amp;gt;
    &amp;lt;/chart&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This assumes saved search called "SuperChartSearch" returns data like this :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | bin _time span=1h | stats avg(User) as User avg(Sys) as Sys avg(Wait) as Wait avg(mem_free) as mem_free avg(swap_free) as swap by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/sample_table.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;And will display like this :&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/sample_graph.jpg" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Update&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If you want a realtime chart, replace the &lt;CODE&gt;&amp;lt;searchName&amp;gt;.....&amp;lt;/searchName&amp;gt;&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;with (for example)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;searchString&amp;gt;index=_internal | bin _time span=1m | stats min(eps) avg(eps) max(eps) sum(eps) perc95(eps) by _time&amp;lt;/searchString&amp;gt;
    &amp;lt;earliestTime&amp;gt;rt-15m&amp;lt;/earliestTime&amp;gt;
    &amp;lt;latestTime&amp;gt;rt&amp;lt;/latestTime&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 02 Apr 2013 13:42:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81180#M4372</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-04-02T13:42:24Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81181#M4373</link>
      <description>&lt;P&gt;This is excellent! Thank you very much for the help!&lt;/P&gt;

&lt;P&gt;Last question though.. How would I make this into a realtime search without having to use a saved search? How would I specify in the XML to make it a realtime search if I use this as the search? &lt;/P&gt;

&lt;P&gt;index=os source=cpu host=x38dev10 | multikv fields | timechart span=60s max(pctUser) as User, avg(pctSystem) as System by host | appendcols [search index="os" sourcetype="ps" host=x38dev10 | multikv fields pctCPU, COMMAND, USER | eval process=USER."/".COMMAND | search USER=tomcat OR redis | timechart span=60s avg(pctCPU) by process useother="f"]&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 15:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81181#M4373</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-04-02T15:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81182#M4374</link>
      <description>&lt;P&gt;updated answer&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 16:10:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81182#M4374</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-04-02T16:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81183#M4375</link>
      <description>&lt;P&gt;Thanks for the update. For some reason, I think how I have the subsearch setup with appendcols does not like realtime searches. Do I have the search setup properly for this or is there a better way to go about pulling in both the searches?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 16:49:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81183#M4375</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-04-02T16:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81184#M4376</link>
      <description>&lt;P&gt;try something like this - I have no idea if it works - I dont have the app for *nix :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=os host=x38dev10 source=cpu OR sourcetype=ps &lt;BR /&gt;
| multikv &lt;BR /&gt;
| search USER=tomcat OR USER=redis OR source=cpu &lt;BR /&gt;
| eval metric=(if(sourcetype=="ps",USER."/".COMMAND,"CPU"))&lt;BR /&gt;
| timechart max(pctUser) as User, avg(pctSystem) as System avg(pctCPU) as proc by metric&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 18:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81184#M4376</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-04-02T18:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81185#M4377</link>
      <description>&lt;P&gt;worked like a charm. Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 19:17:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81185#M4377</guid>
      <dc:creator>aaronkorn</dc:creator>
      <dc:date>2013-04-02T19:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81186#M4378</link>
      <description>&lt;P&gt;that is surprising : )&lt;/P&gt;

&lt;P&gt;feel free to mark the answer as accepted if its working for you.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 19:23:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81186#M4378</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-04-02T19:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81187#M4379</link>
      <description>&lt;P&gt;This works brilliantly. Only problem I have is that when I try to generate a PDF, it doesn't render correctly. Anyone else having this issue?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2013 12:43:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81187#M4379</guid>
      <dc:creator>watsm10</dc:creator>
      <dc:date>2013-04-15T12:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81188#M4380</link>
      <description>&lt;P&gt;This is documented as a migration issue in moving from Splunk 5 to Splunk 6. In Splunk 6, simple XML uses JavaScript, not Flash. The technique used here requires Flash.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.0.1/AdvancedDev/Migration#Flash_charting_not_available_in_simple_XML_dashboards"&gt;http://docs.splunk.com/Documentation/Splunk/6.0.1/AdvancedDev/Migration#Flash_charting_not_available_in_simple_XML_dashboards&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2014 07:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81188#M4380</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-01-22T07:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Chart Overlay and Different Graph Type</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81189#M4381</link>
      <description>&lt;P&gt;@iguinn are you saying this won't work anymore in the latest 6.3? If so how would we replicate this in 6.3? I know this is still possible because I've seen a couple folks at the conf use a similiar chart &lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2016 19:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Chart-Overlay-and-Different-Graph-Type/m-p/81189#M4381</guid>
      <dc:creator>spammenot66</dc:creator>
      <dc:date>2016-03-04T19:41:02Z</dc:date>
    </item>
  </channel>
</rss>

