<?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 plot values (without using max(), avg(), count()...) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-values-without-using-max-avg-count/m-p/40238#M9268</link>
    <description>&lt;P&gt;Hello.&lt;/P&gt;

&lt;P&gt;I would like to create a line chart but, I don't want to plot a max() or an avg()?&lt;/P&gt;

&lt;P&gt;I just want to show the numbers that CPU_IDLE_USAGE (in this case) returns. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time              CPU_ID CPU_IDLE_USAGE 
8/23/10 11:25:00.000 PM 0 90 
8/23/10 11:20:00.000 PM 0 83 
8/23/10 11:15:00.000 PM 0 81 
8/23/10 11:10:00.000 PM 0 82 
8/23/10 11:05:00.000 PM 0 88 
8/23/10 11:00:00.000 PM 0 78 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to plot the following values: 90, 83, 81, 82, 88... etc. How can I do that?&lt;/P&gt;

&lt;P&gt;So far I'm using something like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=*slu* CPU_ID=0| timechart max(CPU_IDLE_USAGE)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I already tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=*slu* CPU_ID=0| timechart CPU_IDLE_USAGE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but Splunks says the use of a function is mandatory.&lt;/P&gt;

&lt;P&gt;What can I do?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;Thank you again&lt;/P&gt;</description>
    <pubDate>Tue, 31 Aug 2010 03:44:38 GMT</pubDate>
    <dc:creator>vtrujillo</dc:creator>
    <dc:date>2010-08-31T03:44:38Z</dc:date>
    <item>
      <title>How to plot values (without using max(), avg(), count()...)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-values-without-using-max-avg-count/m-p/40238#M9268</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;

&lt;P&gt;I would like to create a line chart but, I don't want to plot a max() or an avg()?&lt;/P&gt;

&lt;P&gt;I just want to show the numbers that CPU_IDLE_USAGE (in this case) returns. For example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time              CPU_ID CPU_IDLE_USAGE 
8/23/10 11:25:00.000 PM 0 90 
8/23/10 11:20:00.000 PM 0 83 
8/23/10 11:15:00.000 PM 0 81 
8/23/10 11:10:00.000 PM 0 82 
8/23/10 11:05:00.000 PM 0 88 
8/23/10 11:00:00.000 PM 0 78 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to plot the following values: 90, 83, 81, 82, 88... etc. How can I do that?&lt;/P&gt;

&lt;P&gt;So far I'm using something like: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=*slu* CPU_ID=0| timechart max(CPU_IDLE_USAGE)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I already tried:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source=*slu* CPU_ID=0| timechart CPU_IDLE_USAGE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;but Splunks says the use of a function is mandatory.&lt;/P&gt;

&lt;P&gt;What can I do?&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;

&lt;P&gt;Thank you again&lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2010 03:44:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-values-without-using-max-avg-count/m-p/40238#M9268</guid>
      <dc:creator>vtrujillo</dc:creator>
      <dc:date>2010-08-31T03:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot values (without using max(), avg(), count()...)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-values-without-using-max-avg-count/m-p/40239#M9269</link>
      <description>&lt;P&gt;Please see: &lt;A href="http://answers.splunk.com/questions/5991/simple-question-i-think-charting-field-values-over-time" rel="nofollow"&gt;http://answers.splunk.com/questions/5991/simple-question-i-think-charting-field-values-over-time&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can use the &lt;CODE&gt;first()&lt;/CODE&gt; function:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; source=*slu* CPU_ID=0| timechart first(CPU_IDLE_USAGE) as CPU_IDLE_USAGE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The use of a function is mandatory because &lt;CODE&gt;timechart&lt;/CODE&gt; must know how to resolve potential multiple values in an interval. If you are certain there are none, then the result is identical. &lt;/P&gt;

&lt;P&gt;One of the purposes of &lt;CODE&gt;stats&lt;/CODE&gt;/&lt;CODE&gt;chart&lt;/CODE&gt;/&lt;CODE&gt;timechart&lt;/CODE&gt; is to aggregate varying amounts of data over varying intervals. If you have no need to do this, you can also use &lt;CODE&gt;table&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; source=*slu* CPU_ID=0| table _time CPU_IDLE_USAGE
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Aug 2010 03:52:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-values-without-using-max-avg-count/m-p/40239#M9269</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-08-31T03:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot values (without using max(), avg(), count()...)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-values-without-using-max-avg-count/m-p/40240#M9270</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2010 03:07:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-values-without-using-max-avg-count/m-p/40240#M9270</guid>
      <dc:creator>vtrujillo</dc:creator>
      <dc:date>2010-09-01T03:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to plot values (without using max(), avg(), count()...)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-plot-values-without-using-max-avg-count/m-p/40241#M9271</link>
      <description>&lt;P&gt;I'd recommend doing something like this:&lt;/P&gt;

&lt;P&gt;source=&lt;EM&gt;slu&lt;/EM&gt; CPU_ID=0| table _time CPU_IDLE_USAGE&lt;/P&gt;

&lt;P&gt;This creates a table with actual values in it.  By adding a _time column, you can then click over to the Visualizations tab and it will know how to chart it.  Note that this won't work for a large number of data points.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:28:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-plot-values-without-using-max-avg-count/m-p/40241#M9271</guid>
      <dc:creator>mikesela</dc:creator>
      <dc:date>2020-09-28T16:28:07Z</dc:date>
    </item>
  </channel>
</rss>

