<?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: timechart question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-question/m-p/79505#M20119</link>
    <description>&lt;P&gt;You can do this by adding your &lt;CODE&gt;eval&lt;/CODE&gt; after the &lt;CODE&gt;timechart&lt;/CODE&gt; command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_* | timechart count(eval(method="GET")) AS GET, count(eval(method="POST")) AS POST | eval GetPercentage=(GET/(GET+SUCCESS) * 100)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 07 Jan 2013 08:41:03 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-01-07T08:41:03Z</dc:date>
    <item>
      <title>timechart question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-question/m-p/79504#M20118</link>
      <description>&lt;P&gt;In the timechart docs, the following example was provided:&lt;/P&gt;

&lt;P&gt;sourcetype=access_* | timechart count(eval(method="GET")) AS GET, count(eval(method="POST")) AS POST&lt;/P&gt;

&lt;P&gt;What if I want to calculate the GetPercentage such that &lt;/P&gt;

&lt;P&gt;eval GetPercentage=(GET/(GET+SUCCESS) * 100) &lt;/P&gt;

&lt;P&gt;and have that displayed in the timechart? The result should be something like:&lt;/P&gt;

&lt;P&gt;_time                      GetPercentage&lt;BR /&gt;
1/6/2013                     34.5&lt;BR /&gt;
1/7/2013                     22.5&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 03:09:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-question/m-p/79504#M20118</guid>
      <dc:creator>dbautist</dc:creator>
      <dc:date>2013-01-07T03:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: timechart question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-question/m-p/79505#M20119</link>
      <description>&lt;P&gt;You can do this by adding your &lt;CODE&gt;eval&lt;/CODE&gt; after the &lt;CODE&gt;timechart&lt;/CODE&gt; command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_* | timechart count(eval(method="GET")) AS GET, count(eval(method="POST")) AS POST | eval GetPercentage=(GET/(GET+SUCCESS) * 100)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Jan 2013 08:41:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-question/m-p/79505#M20119</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-01-07T08:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: timechart question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-question/m-p/79506#M20120</link>
      <description>&lt;P&gt;Thanks! I also want to get a timechart of the GetPercentage by API. I don't want the GET or POST to show because I want to later create a line chart with just the GetPercentage by API. I started with the following but I can't insert the 'by API' in the eval clause:&lt;/P&gt;

&lt;P&gt;sourcetype=access_* | timechart count(eval(method="GET")) AS GET, count(eval(method="POST")) AS POST | eval GetPercentage=(GET/(GET+SUCCESS) * 100) | fields - GET, POST&lt;/P&gt;

&lt;P&gt;Expected output is something like:&lt;BR /&gt;
_time       getCustomerName(GetPercentage)   getCustomerAge(GetPercentage)&lt;BR /&gt;
1/6/2013    34.5   22.9&lt;BR /&gt;
1/7/2013    22.5   33.7&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2013 16:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-question/m-p/79506#M20120</guid>
      <dc:creator>dbautist</dc:creator>
      <dc:date>2013-01-07T16:19:00Z</dc:date>
    </item>
  </channel>
</rss>

