<?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 can I  display these  rows of data in a line chart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396305#M115058</link>
    <description>&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your search to return the fields"| stats max(numerical_value) by _time,host_ID,metric_type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and select "line" visualization&lt;/P&gt;

&lt;P&gt;e.g&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;TEST&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_introspection sourcetype=splunk_resource_usage  data.pct_cpu=*|table _time,data.process,sourcetype,data.pct_cpu
|stats max(data.pct_cpu) by _time,data.process,sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
      &amp;lt;/chart&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>Wed, 08 Aug 2018 13:13:31 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-08-08T13:13:31Z</dc:date>
    <item>
      <title>How can I  display these  rows of data in a line chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396304#M115057</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/5522iFADF20B51BDC72B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;BR /&gt;
There are 5 rows of data in the table. I want to display these 5 rows of data a line chart.&lt;BR /&gt;
There are 4 fields, field 1 for time, field 2 for host ID, field 3 for metric type, field 4 for numeric value.&lt;BR /&gt;
I want to show the usage rate and memory usage of CPU in a picture, using the way of polygon graph.&lt;BR /&gt;
Excuse me, how to realize&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 10:42:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396304#M115057</guid>
      <dc:creator>flzhang132</dc:creator>
      <dc:date>2018-08-08T10:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I  display these  rows of data in a line chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396305#M115058</link>
      <description>&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"your search to return the fields"| stats max(numerical_value) by _time,host_ID,metric_type
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and select "line" visualization&lt;/P&gt;

&lt;P&gt;e.g&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;
  &amp;lt;label&amp;gt;TEST&amp;lt;/label&amp;gt;
  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_introspection sourcetype=splunk_resource_usage  data.pct_cpu=*|table _time,data.process,sourcetype,data.pct_cpu
|stats max(data.pct_cpu) by _time,data.process,sourcetype&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&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;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;all&amp;lt;/option&amp;gt;
      &amp;lt;/chart&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>Wed, 08 Aug 2018 13:13:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396305#M115058</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-08T13:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I  display these  rows of data in a line chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396306#M115059</link>
      <description>&lt;P&gt;I want to display these 5 rows of data a line chart. and can not used a aggregate function （ex. max）&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 13:48:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396306#M115059</guid>
      <dc:creator>flzhang132</dc:creator>
      <dc:date>2018-08-08T13:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I  display these  rows of data in a line chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396307#M115060</link>
      <description>&lt;P&gt;if those 5 lines are unique by time and other fields, you still get those values irrespective of the aggregation function. Instead of max, you could use `values&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 14:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396307#M115060</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-08-08T14:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: How can I  display these  rows of data in a line chart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396308#M115061</link>
      <description>&lt;P&gt;@flzhang132 while your actual requirement would only be clear only after you can provide more details on the type of output you want. &lt;/P&gt;

&lt;P&gt;Do check out the following answers which talks about two options i.e.  to use Event Annotations available from Splunk Enterprise 7.0 onward or else to add details to Tooltip text using answer by @jeffland &lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/613705/using-dashboard-for-presentation.html"&gt;https://answers.splunk.com/answers/613705/using-dashboard-for-presentation.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Aug 2018 19:47:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-display-these-rows-of-data-in-a-line-chart/m-p/396308#M115061</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-08-08T19:47:04Z</dc:date>
    </item>
  </channel>
</rss>

