<?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 overlay 2 searches to generate linechart and area chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132583#M36206</link>
    <description>&lt;P&gt;I was able to figure this out by using "appendcols"&lt;/P&gt;</description>
    <pubDate>Mon, 24 Nov 2014 17:30:25 GMT</pubDate>
    <dc:creator>mmouse88</dc:creator>
    <dc:date>2014-11-24T17:30:25Z</dc:date>
    <item>
      <title>How to overlay 2 searches to generate linechart and area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132575#M36198</link>
      <description>&lt;P&gt;Using 6.1, I would like to create a horizontal line with area chart.  I have read so many examples and my search command has produce very close result.  Only thing missing is to show by sourcetype limit=n (number).  Here's my command: &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;index=name | bin _time span=15m | eventstats max(total_capacity) as Available | timechart sum(eval(quantity/12)) span=1h as current_usage first(Available) as available&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Right now it shows the horizontal line which is available and under is the area chart which is current_usage.  very close to what i want.&lt;/P&gt;

&lt;P&gt;I would like to some how show current_usage is a sourcetype. example: by sourcetype limit=n (number).  Instead solid area chart, it has a breakdown what the sourcetype is.  sourcetype = powertools (hammer, wrench, screwdriver, etc).  &lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Nov 2014 06:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132575#M36198</guid>
      <dc:creator>mmouse88</dc:creator>
      <dc:date>2014-11-22T06:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 searches to generate linechart and area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132576#M36199</link>
      <description>&lt;P&gt;I'm not quite sure if I understand your question correctly, are you trying to split the area by sourcetype but still show one overlay line overall?&lt;/P&gt;

&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  index=name
| timechart span=1h sum(eval(quantity/12)) as current_usage max(total_capacity) as available by sourcetype
| rename "current_usage: *" as * | eval available = 0
| foreach "available: *" [eval available = if(isnull('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;' OR '&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;' &amp;lt; available, available, '&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;')]
| eventstats max(available) as available | fields - "available: *"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Nov 2014 14:29:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132576#M36199</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-22T14:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 searches to generate linechart and area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132577#M36200</link>
      <description>&lt;P&gt;sorry for the confusion.  Basically i want to show two charts: line and area where the area would like to breakdown what current_usage is.  current_usage is powertools.  Powertools has hammer, wrench, screwdriver, etc.   &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:14:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132577#M36200</guid>
      <dc:creator>mmouse88</dc:creator>
      <dc:date>2020-09-28T18:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 searches to generate linechart and area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132578#M36201</link>
      <description>&lt;P&gt;That doesn't reduce my confusion. If the search I posted earlier doesn't miraculously do what you need you should post a batch of sample data along with how you want the chart to look like.&lt;/P&gt;</description>
      <pubDate>Sat, 22 Nov 2014 16:57:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132578#M36201</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-22T16:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 searches to generate linechart and area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132579#M36202</link>
      <description>&lt;P&gt;basically, if I break the last search:&lt;/P&gt;

&lt;P&gt;index=name | bin _time span=15m | timechart sum(eval(quantity/12)) span=1h as current_usage first(Available) as available&lt;/P&gt;

&lt;P&gt;replace it with&lt;/P&gt;

&lt;P&gt;index=name | bin _time span=15m | timechart sum(eval(quantity/12)) span=1h by sourcetype limit=10&lt;/P&gt;

&lt;P&gt;The area chart wll display 10 sourcetypes.  Hope this helps.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:15:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132579#M36202</guid>
      <dc:creator>mmouse88</dc:creator>
      <dc:date>2020-09-28T18:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 searches to generate linechart and area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132580#M36203</link>
      <description>&lt;P&gt;My search doesn't yield ten sourcetypes and one &lt;CODE&gt;available&lt;/CODE&gt; column?&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2014 11:18:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132580#M36203</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-11-23T11:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 searches to generate linechart and area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132581#M36204</link>
      <description>&lt;P&gt;sorry again, use this link as example &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Timechart"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/SearchReference/Timechart&lt;/A&gt;.  Example one is a stacked bar chart, the type is ProductName. Instead of bar chart, mine is stacked area chart with 10 types shown.  Maybe i was using the wrong terminology, sourcetype vs type.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Nov 2014 16:29:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132581#M36204</guid>
      <dc:creator>mmouse88</dc:creator>
      <dc:date>2014-11-23T16:29:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 searches to generate linechart and area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132582#M36205</link>
      <description>&lt;P&gt;you are correct that your search will not yield 10 sourcetypes and one available column if you use the original search.  My question was how to change it to display 10 sourcetypes on the visualization tab with the line chart and area chart and 10 columns on the Statistics tab&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 03:30:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132582#M36205</guid>
      <dc:creator>mmouse88</dc:creator>
      <dc:date>2014-11-24T03:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to overlay 2 searches to generate linechart and area chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132583#M36206</link>
      <description>&lt;P&gt;I was able to figure this out by using "appendcols"&lt;/P&gt;</description>
      <pubDate>Mon, 24 Nov 2014 17:30:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-overlay-2-searches-to-generate-linechart-and-area-chart/m-p/132583#M36206</guid>
      <dc:creator>mmouse88</dc:creator>
      <dc:date>2014-11-24T17:30:25Z</dc:date>
    </item>
  </channel>
</rss>

