<?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: Duration data not returning properly in a transaction? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Duration-data-not-returning-properly-in-a-transaction/m-p/45462#M10775</link>
    <description>&lt;P&gt;Does your event-stream have the _time field available prior to invocation of the transaction command?  It might be most convenient to check with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval test_time=_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where ... is your full search string up to the point of transaction.  At this point you can use the field inspection tools on test_time.&lt;/P&gt;

&lt;P&gt;One possibility is that all these events got timestamped with the current time, (DATE_CONFIG=current) and were loaded in as historical data.. or something along those lines.  It seems a bit unlikely given the recent nature of these events, but not sure what's going on so far.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Feb 2011 02:33:01 GMT</pubDate>
    <dc:creator>jrodman</dc:creator>
    <dc:date>2011-02-17T02:33:01Z</dc:date>
    <item>
      <title>Duration data not returning properly in a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duration-data-not-returning-properly-in-a-transaction/m-p/45461#M10774</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;For some reason, in a query that contains a transaction of some Juniper SSL VPN logs, my duration doesn't seem to be calculating properly.  Instead, I'm getting all zero's for my results.  &lt;/P&gt;

&lt;P&gt;here's the relevant parts of my query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | transaction remoteip startswith="started" endswith="ended" | table vpnuser remoteip duration
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and here's a snippet of a result:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Feb 15 22:23:51 10.31.248.17 Juniper: 2011-02-15 22:23:51 - nethost - [x.x.x.x] user(FOO-NC)[BarNC] - user/FOO-NC logged out from IP (y.y.y.y) because user started new session from IP (z.z.z.z).
Feb 15 22:24:25 10.31.248.17 Juniper: 2011-02-15 22:24:25 - nethost - [x.x.x.x] user(FOO-NC)[BarNC] - Network Connect: Session ended for user with IP a.a.a.a
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm getting a properly constructed table, of course, but with the duration column filled with zero's.  Even a spot check on the 'duration' field value reveals all zero's.  &lt;/P&gt;

&lt;P&gt;I basically want the difference in time between the first and last event, and I'm just not getting it. &lt;/P&gt;

&lt;P&gt;Thanks in advance for any assistance!&lt;/P&gt;

&lt;P&gt;-mt&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2011 07:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duration-data-not-returning-properly-in-a-transaction/m-p/45461#M10774</guid>
      <dc:creator>mtanadsk</dc:creator>
      <dc:date>2011-02-16T07:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: Duration data not returning properly in a transaction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Duration-data-not-returning-properly-in-a-transaction/m-p/45462#M10775</link>
      <description>&lt;P&gt;Does your event-stream have the _time field available prior to invocation of the transaction command?  It might be most convenient to check with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval test_time=_time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;where ... is your full search string up to the point of transaction.  At this point you can use the field inspection tools on test_time.&lt;/P&gt;

&lt;P&gt;One possibility is that all these events got timestamped with the current time, (DATE_CONFIG=current) and were loaded in as historical data.. or something along those lines.  It seems a bit unlikely given the recent nature of these events, but not sure what's going on so far.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 02:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Duration-data-not-returning-properly-in-a-transaction/m-p/45462#M10775</guid>
      <dc:creator>jrodman</dc:creator>
      <dc:date>2011-02-17T02:33:01Z</dc:date>
    </item>
  </channel>
</rss>

