<?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: Increasing TIMESTAMP by adding seconds. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Increasing-TIMESTAMP-by-adding-seconds/m-p/128572#M34915</link>
    <description>&lt;P&gt;Hi Rich,&lt;/P&gt;

&lt;P&gt;Thank you, i did not expect it to be that simple &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;After your solution "eval end_time=_time+time_taken" i got results in Epoch time.&lt;BR /&gt;
So i had to convert it using "convert" , "timeformat" and "ctime" to convert it back to normal.&lt;/P&gt;

&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 16:59:29 GMT</pubDate>
    <dc:creator>jlhamlet</dc:creator>
    <dc:date>2020-09-28T16:59:29Z</dc:date>
    <item>
      <title>Increasing TIMESTAMP by adding seconds.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Increasing-TIMESTAMP-by-adding-seconds/m-p/128569#M34912</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have a proxy log that logs the time the query was executed and also give the duration in seconds.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"11/Jan/2014:00:45:32.755 +0200" - - 1xx.1xx.1xx.43:0 0 - - 3226 "-"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to "add" the seconds (3326) to the timestamp so that i can create a table with:&lt;BR /&gt;
Start_time = 00:45:32&lt;BR /&gt;
End time = "00:45:32" + "3336" &lt;/P&gt;

&lt;P&gt;To sum up: End_Time should be START_TIME + SECONDS.&lt;/P&gt;

&lt;P&gt;Hope i am clear on the explanation.&lt;/P&gt;

&lt;P&gt;Thank you for your help   &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:59:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Increasing-TIMESTAMP-by-adding-seconds/m-p/128569#M34912</guid>
      <dc:creator>jlhamlet</dc:creator>
      <dc:date>2020-09-28T16:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing TIMESTAMP by adding seconds.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Increasing-TIMESTAMP-by-adding-seconds/m-p/128570#M34913</link>
      <description>&lt;P&gt;For similar circumstances, I use eval.  I don't have an exact match to your needs, but you could try first to pull out the field you need with a rex (I don't have any ... is that an apache log? ... handy, so I'm sure someone else or other searching can turn up a better rex because this one is terrible. You could probably use the Field Extractor to get the field out, too.)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;rex  "- - (?&amp;lt;time_taken&amp;gt;\d{1,5}) "
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then use that field, which IIRC you should be able to just do a &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval end_time=_time+time_taken
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Jul 2014 15:26:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Increasing-TIMESTAMP-by-adding-seconds/m-p/128570#M34913</guid>
      <dc:creator>Richfez</dc:creator>
      <dc:date>2014-07-02T15:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing TIMESTAMP by adding seconds.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Increasing-TIMESTAMP-by-adding-seconds/m-p/128571#M34914</link>
      <description>&lt;P&gt;Are you sure that's not in milliseconds?&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2014 22:26:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Increasing-TIMESTAMP-by-adding-seconds/m-p/128571#M34914</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2014-07-02T22:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Increasing TIMESTAMP by adding seconds.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Increasing-TIMESTAMP-by-adding-seconds/m-p/128572#M34915</link>
      <description>&lt;P&gt;Hi Rich,&lt;/P&gt;

&lt;P&gt;Thank you, i did not expect it to be that simple &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;After your solution "eval end_time=_time+time_taken" i got results in Epoch time.&lt;BR /&gt;
So i had to convert it using "convert" , "timeformat" and "ctime" to convert it back to normal.&lt;/P&gt;

&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:59:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Increasing-TIMESTAMP-by-adding-seconds/m-p/128572#M34915</guid>
      <dc:creator>jlhamlet</dc:creator>
      <dc:date>2020-09-28T16:59:29Z</dc:date>
    </item>
  </channel>
</rss>

