<?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 do convert a field and report on the average response time? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12279#M961</link>
    <description>&lt;P&gt;I have a field in my Apache logs that's defined as "MicroSeconds".  This is the response time in microseconds for a specific call in Apache to our Weblogic back ends.&lt;/P&gt;

&lt;P&gt;I'm trying to generate a real time chart on the average response times based on the "Microseconds" field.  I'd like to be able to convert microseconds to milliseconds so I don't freak out our users when they see a transaction hit 4000..&lt;/P&gt;

&lt;P&gt;How would I do that?  The basic search right now is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="uat_apache_logs" /pbng | timechart avg(MicroSeconds) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which works good..I just need to convert it to milliseconds..&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2010 00:53:37 GMT</pubDate>
    <dc:creator>Brian_Osburn</dc:creator>
    <dc:date>2010-04-27T00:53:37Z</dc:date>
    <item>
      <title>How do convert a field and report on the average response time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12279#M961</link>
      <description>&lt;P&gt;I have a field in my Apache logs that's defined as "MicroSeconds".  This is the response time in microseconds for a specific call in Apache to our Weblogic back ends.&lt;/P&gt;

&lt;P&gt;I'm trying to generate a real time chart on the average response times based on the "Microseconds" field.  I'd like to be able to convert microseconds to milliseconds so I don't freak out our users when they see a transaction hit 4000..&lt;/P&gt;

&lt;P&gt;How would I do that?  The basic search right now is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="uat_apache_logs" /pbng | timechart avg(MicroSeconds) 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;which works good..I just need to convert it to milliseconds..&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2010 00:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12279#M961</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2010-04-27T00:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do convert a field and report on the average response time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12280#M962</link>
      <description>&lt;P&gt;You can use the "eval" command to perform operations in field values: &lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Eval" rel="nofollow"&gt;http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Eval&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In your case:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart avg(MicroSeconds) as avgus | eval avg_milliseconds = avgus/1000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Apr 2010 01:46:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12280#M962</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-04-27T01:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do convert a field and report on the average response time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12281#M963</link>
      <description>&lt;P&gt;That works.  Anyway to make drilldown work with this?  I get a "# PARSER: Applying intentions failed Unable to drilldown because of post-reporting 'eval' command"&lt;/P&gt;

&lt;P&gt;Brian&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2010 02:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12281#M963</guid>
      <dc:creator>Brian_Osburn</dc:creator>
      <dc:date>2010-04-27T02:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do convert a field and report on the average response time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12282#M964</link>
      <description>&lt;P&gt;Answer is disarmingly simple - just do the eval before the timechart instead of after.  "eval milliseconds=MicroSeconds*1000 | timechart avg(milliseconds)"&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2010 02:41:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12282#M964</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2010-04-27T02:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do convert a field and report on the average response time?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12283#M965</link>
      <description>&lt;P&gt;How did you define the field in Splunk? I assume you are using the Apache response time option in the log format?&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;

&lt;P&gt;Ed&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2012 20:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-convert-a-field-and-report-on-the-average-response-time/m-p/12283#M965</guid>
      <dc:creator>ebailey</dc:creator>
      <dc:date>2012-04-26T20:12:41Z</dc:date>
    </item>
  </channel>
</rss>

