<?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 add seconds or minutes every 50000 events in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/add-seconds-or-minutes-every-50000-events/m-p/494526#M137847</link>
    <description>&lt;P&gt;Good afternoon&lt;/P&gt;

&lt;P&gt;Currently you try to index data to an index summary, but these events do not contain a timestamp so the indexing remains with the date the query was run.&lt;/P&gt;

&lt;P&gt;This for splunk is a problem because there is no timestamp the data is indexed with the same timestamp and the query is truncated when you try to find it.&lt;/P&gt;

&lt;P&gt;is there any method that allows you to add to a certain number of events plus seconds or minutes?&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;</description>
    <pubDate>Wed, 11 Mar 2020 15:50:11 GMT</pubDate>
    <dc:creator>efaundez</dc:creator>
    <dc:date>2020-03-11T15:50:11Z</dc:date>
    <item>
      <title>add seconds or minutes every 50000 events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/add-seconds-or-minutes-every-50000-events/m-p/494526#M137847</link>
      <description>&lt;P&gt;Good afternoon&lt;/P&gt;

&lt;P&gt;Currently you try to index data to an index summary, but these events do not contain a timestamp so the indexing remains with the date the query was run.&lt;/P&gt;

&lt;P&gt;This for splunk is a problem because there is no timestamp the data is indexed with the same timestamp and the query is truncated when you try to find it.&lt;/P&gt;

&lt;P&gt;is there any method that allows you to add to a certain number of events plus seconds or minutes?&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 15:50:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/add-seconds-or-minutes-every-50000-events/m-p/494526#M137847</guid>
      <dc:creator>efaundez</dc:creator>
      <dc:date>2020-03-11T15:50:11Z</dc:date>
    </item>
    <item>
      <title>Re: add seconds or minutes every 50000 events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/add-seconds-or-minutes-every-50000-events/m-p/494527#M137848</link>
      <description>&lt;P&gt;Set _time = now() and add seconds every 50000 events:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your_search&amp;gt; | eval _time=now(), count=1 | streamstats sum(count) as count | eval _time= _time + floor(count/50000)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to add seconds to _time of each event then use this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your_search&amp;gt; | eval _time=now(), seconds=0.001 | streamstats sum(seconds) as seconds | eval _time=_time + seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Mar 2020 16:47:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/add-seconds-or-minutes-every-50000-events/m-p/494527#M137848</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-11T16:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: add seconds or minutes every 50000 events</title>
      <link>https://community.splunk.com/t5/Splunk-Search/add-seconds-or-minutes-every-50000-events/m-p/494528#M137849</link>
      <description>&lt;P&gt;it worked, thank you for your response.&lt;/P&gt;

&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 11 Mar 2020 17:00:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/add-seconds-or-minutes-every-50000-events/m-p/494528#M137849</guid>
      <dc:creator>efaundez</dc:creator>
      <dc:date>2020-03-11T17:00:39Z</dc:date>
    </item>
  </channel>
</rss>

