<?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 chart overlay from 2 stats searches with no time series data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-chart-overlay-from-2-stats-searches-with-no-time/m-p/250812#M74942</link>
    <description>&lt;P&gt;Not sure if this is in the ballpark, but I was able to put together this simple example in my test environment.  The count is used with the column chart.  And the min is used as the chart overlay (see the link below).  If you maybe transpose your first search and then join with the second, it might be in the right format?  Not really knowing your data, there could be a faster way to get there.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Viz/Chartcontrols#Chart_overlay"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/Viz/Chartcontrols#Chart_overlay&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal component!=metrics | eval size=len(_raw) | stats min(size) as size count by component | sort - count | head 5 | sort component
&lt;/CODE&gt;&lt;/PRE&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/1563i99782E657EA5E498/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>Sat, 09 Jul 2016 14:27:17 GMT</pubDate>
    <dc:creator>maciep</dc:creator>
    <dc:date>2016-07-09T14:27:17Z</dc:date>
    <item>
      <title>How to create a chart overlay from 2 stats searches with no time series data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-chart-overlay-from-2-stats-searches-with-no-time/m-p/250811#M74941</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;sourcetype=pbs:rg OR (sourcetype=pbs:status state!=free AND state!=job-* tag=sasl0002)

| foreach resources_available_* [eval temp="&amp;lt;&amp;gt;" | rex field=temp "\_n(?\d+)\_" | eval &amp;lt;&amp;gt; = '&amp;lt;&amp;gt;'/n ] | stats values(resources_available_jg*) as resources_available_jg* | rename resources_available_jg_* as * 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This gives me something like this:&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/1564i4BEA51893FAE2757/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;Now I want to append a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=pbs:status state!=free AND state!=job-* | dedup Mom state| table resources_available_vnode resource_group comment | stats count by resource_group
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which gives me something like this:&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/1565iF0A00F2A6DDD830A/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;so that the fields from the first search are a column chart and the fields from the second search are a line graph overlaying the column chart.&lt;BR /&gt;
Something like this:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://i.stack.imgur.com/gnVx4.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;Is it possible given one is a series of single fields and values, and one is a number of multiple values in a field?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 23:07:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-chart-overlay-from-2-stats-searches-with-no-time/m-p/250811#M74941</guid>
      <dc:creator>mjones414</dc:creator>
      <dc:date>2016-07-08T23:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a chart overlay from 2 stats searches with no time series data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-chart-overlay-from-2-stats-searches-with-no-time/m-p/250812#M74942</link>
      <description>&lt;P&gt;Not sure if this is in the ballpark, but I was able to put together this simple example in my test environment.  The count is used with the column chart.  And the min is used as the chart overlay (see the link below).  If you maybe transpose your first search and then join with the second, it might be in the right format?  Not really knowing your data, there could be a faster way to get there.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.4/Viz/Chartcontrols#Chart_overlay"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.4/Viz/Chartcontrols#Chart_overlay&lt;/A&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal component!=metrics | eval size=len(_raw) | stats min(size) as size count by component | sort - count | head 5 | sort component
&lt;/CODE&gt;&lt;/PRE&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/1563i99782E657EA5E498/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>Sat, 09 Jul 2016 14:27:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-a-chart-overlay-from-2-stats-searches-with-no-time/m-p/250812#M74942</guid>
      <dc:creator>maciep</dc:creator>
      <dc:date>2016-07-09T14:27:17Z</dc:date>
    </item>
  </channel>
</rss>

