<?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 Line Chart single value over time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Line-Chart-single-value-over-time/m-p/40485#M9331</link>
    <description>&lt;P&gt;I have a log containing memory usage over a period of time. How can I plot a line graph where the x-axis is the time, and the y-axis is the amount of memory used at that time.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2012 13:56:40 GMT</pubDate>
    <dc:creator>Blackninja5431</dc:creator>
    <dc:date>2012-08-21T13:56:40Z</dc:date>
    <item>
      <title>Line Chart single value over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-Chart-single-value-over-time/m-p/40485#M9331</link>
      <description>&lt;P&gt;I have a log containing memory usage over a period of time. How can I plot a line graph where the x-axis is the time, and the y-axis is the amount of memory used at that time.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2012 13:56:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-Chart-single-value-over-time/m-p/40485#M9331</guid>
      <dc:creator>Blackninja5431</dc:creator>
      <dc:date>2012-08-21T13:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart single value over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-Chart-single-value-over-time/m-p/40486#M9332</link>
      <description>&lt;P&gt;If you want to grab each data point, just using &lt;CODE&gt;table&lt;/CODE&gt; with the fields &lt;CODE&gt;_time&lt;/CODE&gt; and your field containing the memory info will do. Let's say the field is called &lt;CODE&gt;memory_used&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | table _time memory_used
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;After that, choose the chart view and apply the appropriate settings.&lt;/P&gt;

&lt;P&gt;If you have loads of data points there is a risk of overwhelming the chart module with more points than it can handle. In that case, use &lt;CODE&gt;timechart&lt;/CODE&gt; and some kind of statistical function for representing values in a certain time interval, like &lt;CODE&gt;first&lt;/CODE&gt;, &lt;CODE&gt;max&lt;/CODE&gt; or &lt;CODE&gt;avg&lt;/CODE&gt;. You need to supply some kind of statistical function because &lt;CODE&gt;timechart&lt;/CODE&gt; divides the events into discrete sets of time intervals, and it needs to know how to handle if there is more than 1 event in an interval.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart avg(memory_used)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Aug 2012 14:54:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-Chart-single-value-over-time/m-p/40486#M9332</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-08-21T14:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Line Chart single value over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Line-Chart-single-value-over-time/m-p/40487#M9333</link>
      <description>&lt;P&gt;After tabulating the data, what settings do you use for chart? I have the table needed to chart by two different fields, but how do I chart Field A by Field B?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2015 19:52:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Line-Chart-single-value-over-time/m-p/40487#M9333</guid>
      <dc:creator>sam_jacob</dc:creator>
      <dc:date>2015-07-16T19:52:29Z</dc:date>
    </item>
  </channel>
</rss>

