<?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 draw a line chart using the data from events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-draw-a-line-chart-using-the-data-from-events/m-p/188730#M54379</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;May I know how to use the data from events and draw a line chart in splunk or splunk can not do it?&lt;BR /&gt;
My input data is simple like this:&lt;BR /&gt;
type1, field1: 80, field2:100&lt;BR /&gt;
type2, field1: 90, field2:100&lt;/P&gt;

&lt;P&gt;I want to draw a line chart that will show two output : 80/100 as rate1 from type1, 90/100 as rate2 from type2&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2015 21:30:54 GMT</pubDate>
    <dc:creator>sunfan1981</dc:creator>
    <dc:date>2015-05-14T21:30:54Z</dc:date>
    <item>
      <title>How to draw a line chart using the data from events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-draw-a-line-chart-using-the-data-from-events/m-p/188730#M54379</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;May I know how to use the data from events and draw a line chart in splunk or splunk can not do it?&lt;BR /&gt;
My input data is simple like this:&lt;BR /&gt;
type1, field1: 80, field2:100&lt;BR /&gt;
type2, field1: 90, field2:100&lt;/P&gt;

&lt;P&gt;I want to draw a line chart that will show two output : 80/100 as rate1 from type1, 90/100 as rate2 from type2&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 21:30:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-draw-a-line-chart-using-the-data-from-events/m-p/188730#M54379</guid>
      <dc:creator>sunfan1981</dc:creator>
      <dc:date>2015-05-14T21:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a line chart using the data from events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-draw-a-line-chart-using-the-data-from-events/m-p/188731#M54380</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=type1 OR sroucetype=type2 | rex "field1\s*:\s*(?&amp;amp;lt;field1&amp;amp;gt;\d+),\s+field2\s*:\s*(?&amp;amp;lt;field2&amp;amp;gt;\d+)" | eval rate=(field1/field2) | timechart rate by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 May 2015 22:07:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-draw-a-line-chart-using-the-data-from-events/m-p/188731#M54380</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-14T22:07:23Z</dc:date>
    </item>
  </channel>
</rss>

