<?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: Divide a value of microseconds to seconds in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143708#M39935</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_logging sourcetype=web_access | eval GetMyPortalTime=GetMyPortalTime/1000000| timechart avg(GetMyPortalTime)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 15 Jul 2014 18:03:35 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-07-15T18:03:35Z</dc:date>
    <item>
      <title>Divide a value of microseconds to seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143707#M39934</link>
      <description>&lt;P&gt;I have an event that has a value pair called GetMyPortalTime:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;698026 [15/Jul/2014:10:47:40 -0700] "GET /wps/myportal HTTP/1.1" 200 254836 TS:1 WAS:tstgpvwp02.octfcu.org:10053 &lt;STRONG&gt;TIME:1312414&lt;/STRONG&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;The time:1312414 is microseconds. When I run the following:&lt;BR /&gt;
index=web_logging sourcetype=web_access| timechart avg(GetMyPortalTime)&lt;/P&gt;

&lt;P&gt;the time shows values as:&lt;BR /&gt;
186631.534483&lt;BR /&gt;
145745.235474&lt;BR /&gt;
235465.586456&lt;/P&gt;

&lt;P&gt;How do I divide these values by 1000000 to covert it to show seconds? I try the following search:&lt;BR /&gt;
index=web_logging sourcetype=web_access| timechart avg(GetMyPortalTime/1000000)&lt;/P&gt;

&lt;P&gt;but it doesn't like it, any suggestions?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:04:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143707#M39934</guid>
      <dc:creator>dperry</dc:creator>
      <dc:date>2020-09-28T17:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value of microseconds to seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143708#M39935</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=web_logging sourcetype=web_access | eval GetMyPortalTime=GetMyPortalTime/1000000| timechart avg(GetMyPortalTime)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Jul 2014 18:03:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143708#M39935</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-07-15T18:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value of microseconds to seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143709#M39936</link>
      <description>&lt;P&gt;Are you sure that's in milliseconds? Dividing by 1,000,000 suggests microseconds.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2014 18:07:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143709#M39936</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-15T18:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value of microseconds to seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143710#M39937</link>
      <description>&lt;P&gt;my apologies, it is microseconds&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2014 18:12:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143710#M39937</guid>
      <dc:creator>dperry</dc:creator>
      <dc:date>2014-07-15T18:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Divide a value of microseconds to seconds</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143711#M39938</link>
      <description>&lt;P&gt;This worked! Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2014 18:17:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Divide-a-value-of-microseconds-to-seconds/m-p/143711#M39938</guid>
      <dc:creator>dperry</dc:creator>
      <dc:date>2014-07-15T18:17:56Z</dc:date>
    </item>
  </channel>
</rss>

