<?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: Convert Pie Chart to Timechart - Is it possible? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-Pie-Chart-to-Timechart-Is-it-possible/m-p/85411#M21812</link>
    <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index sourcetype="my_log" keyword1 keyword2 "errorValue=" | rex field=_raw "keyword1 keyword2 (?&amp;lt;my_key&amp;gt;.*)#" | bucket _time span=1h | stats first(_time) AS time last(error) as last_error first(error) as first_error by action | eval error_count = abs(first_error - last_error) | chart error_count BY time,action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change the &lt;CODE&gt;span=1h&lt;/CODE&gt; to whatever time-basis you would like for your X-axis legend.&lt;/P&gt;</description>
    <pubDate>Fri, 29 May 2015 21:03:33 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-05-29T21:03:33Z</dc:date>
    <item>
      <title>Convert Pie Chart to Timechart - Is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-Pie-Chart-to-Timechart-Is-it-possible/m-p/85410#M21811</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm displaying Pie chart with below query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index sourcetype="my_log" keyword1 keyword2 "errorValue=" | rex field=_raw "keyword1 keyword2 (?&amp;lt;my_key&amp;gt;.*)#" | stats last(error) as last_error first(error) as first_error by action | eval error_count = abs(first_error - last_error) | fields - first_error last_error
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The Pie chart shows different actions &amp;amp; its error counts.&lt;/P&gt;

&lt;P&gt;How can I convert above query to display Timechart so that time will be on X-axis &amp;amp; Y-axis will have errorCount &amp;amp; Legend will be different actions?&lt;/P&gt;

&lt;P&gt;Is that even possible?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2011 18:34:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-Pie-Chart-to-Timechart-Is-it-possible/m-p/85410#M21811</guid>
      <dc:creator>freephoneid</dc:creator>
      <dc:date>2011-10-03T18:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Pie Chart to Timechart - Is it possible?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-Pie-Chart-to-Timechart-Is-it-possible/m-p/85411#M21812</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index sourcetype="my_log" keyword1 keyword2 "errorValue=" | rex field=_raw "keyword1 keyword2 (?&amp;lt;my_key&amp;gt;.*)#" | bucket _time span=1h | stats first(_time) AS time last(error) as last_error first(error) as first_error by action | eval error_count = abs(first_error - last_error) | chart error_count BY time,action
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Change the &lt;CODE&gt;span=1h&lt;/CODE&gt; to whatever time-basis you would like for your X-axis legend.&lt;/P&gt;</description>
      <pubDate>Fri, 29 May 2015 21:03:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-Pie-Chart-to-Timechart-Is-it-possible/m-p/85411#M21812</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-05-29T21:03:33Z</dc:date>
    </item>
  </channel>
</rss>

