<?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: Transaction command - Way to change from timestamp to a different field? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-Way-to-change-from-timestamp-to-a-different/m-p/531667#M150164</link>
    <description>&lt;P&gt;Here is a screenshot showing difference in _time timestamp however around same time as per ServerTime field we have available.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Dec 2020 10:10:04 GMT</pubDate>
    <dc:creator>Maycockk</dc:creator>
    <dc:date>2020-12-02T10:10:04Z</dc:date>
    <item>
      <title>Transaction command - Way to change from timestamp to a different field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-Way-to-change-from-timestamp-to-a-different/m-p/531666#M150163</link>
      <description>&lt;P&gt;Good morning all,&lt;/P&gt;&lt;P&gt;I'm leveraging the&amp;nbsp;&lt;STRONG&gt;transaction&lt;/STRONG&gt; command in order to gather statistics around the&amp;nbsp;&lt;STRONG&gt;duration&amp;nbsp;&lt;/STRONG&gt;of my requests in order to report on them. By default the&amp;nbsp;&lt;STRONG&gt;transaction&amp;nbsp;&lt;/STRONG&gt;command leverages the _time field (timestamp) to calculate the duration for the transaction. However, the issue I'm facing is the timestamp appear to have intermittent jumps in it that's skewing my numbers. I'd assume it's just forwarded config perhaps.&lt;/P&gt;&lt;P&gt;I do have a second, more accurate, timestamps available to me that I'd like to leverage "ServerTime" which has been added to our events. I'm just trying to understand if I can override the&amp;nbsp;&lt;STRONG&gt;transaction&amp;nbsp;&lt;/STRONG&gt;command to use the ServerTime field I have rather than the timestamp?&lt;/P&gt;&lt;P&gt;See attached screenshots demonstrating the issue. Thx in advance everyone&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 10:09:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-Way-to-change-from-timestamp-to-a-different/m-p/531666#M150163</guid>
      <dc:creator>Maycockk</dc:creator>
      <dc:date>2020-12-02T10:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command - Way to change from timestamp to a different field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-Way-to-change-from-timestamp-to-a-different/m-p/531667#M150164</link>
      <description>&lt;P&gt;Here is a screenshot showing difference in _time timestamp however around same time as per ServerTime field we have available.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 10:10:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-Way-to-change-from-timestamp-to-a-different/m-p/531667#M150164</guid>
      <dc:creator>Maycockk</dc:creator>
      <dc:date>2020-12-02T10:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command - Way to change from timestamp to a different field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-Way-to-change-from-timestamp-to-a-different/m-p/531679#M150171</link>
      <description>&lt;P&gt;You can rewrite "_time" to be a valid timestamp from your event data, and then the transaction command will use that value instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if you have a field called ServerTime in the format "12/02/2020 09:32:24 AM":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=main source=http:xxxx ServiceName=xxxx OR ServiceName=xxxx CorrelationID=xxxx |rex xxxxxxxx|eval _time=strptime(ServerTime,"%m/%d/%Y %I:%M:%S %p") |transaction RawCorrelationID |stats count by duration&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 12:25:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-Way-to-change-from-timestamp-to-a-different/m-p/531679#M150171</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2020-12-02T12:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction command - Way to change from timestamp to a different field?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Transaction-command-Way-to-change-from-timestamp-to-a-different/m-p/531685#M150172</link>
      <description>&lt;P&gt;Perfect, worked a charm! Thank you kindly&lt;/P&gt;</description>
      <pubDate>Wed, 02 Dec 2020 12:45:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Transaction-command-Way-to-change-from-timestamp-to-a-different/m-p/531685#M150172</guid>
      <dc:creator>Maycockk</dc:creator>
      <dc:date>2020-12-02T12:45:36Z</dc:date>
    </item>
  </channel>
</rss>

