<?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: display start and endtime in results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417319#M168607</link>
    <description>&lt;P&gt;I dont have events for these dates but the below dummy search works for me .&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval starttime="06/08/2018:00:00:00" |eval endtime="06/08/2018:00:01:00"|eval start_time=strptime(starttime,"%m/%d/%Y:%H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Jul 2018 05:01:28 GMT</pubDate>
    <dc:creator>renjith_nair</dc:creator>
    <dc:date>2018-07-03T05:01:28Z</dc:date>
    <item>
      <title>display start and endtime in results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417314#M168602</link>
      <description>&lt;P&gt;I would like to write a query which will start with &lt;CODE&gt;starttime=06/08/2018:00:00:00 endtime=06/08/2018:00:01:00  index=* ...&lt;/CODE&gt; and then take &lt;CODE&gt;starttime&lt;/CODE&gt; and &lt;CODE&gt;endtime&lt;/CODE&gt; as parameters... and create an epoch time in the result.&lt;/P&gt;

&lt;P&gt;basically every 1 minute I plan to execute &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;starttime=06/08/2018:00:00:00 endtime=06/08/2018:00:01:00  index=* ...
starttime=06/08/2018:00:00:00 endtime=06/08/2018:00:02:00  index=* ...
starttime=06/08/2018:00:00:00 endtime=06/08/2018:00:03:00  index=* ...
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I want to get something as a table like&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;1533686460,1
1533686520,1
1533686580,1
...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 08:00:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417314#M168602</guid>
      <dc:creator>dtakacssplunk</dc:creator>
      <dc:date>2018-07-02T08:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: display start and endtime in results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417315#M168603</link>
      <description>&lt;P&gt;Hi @dtakacssplunk,&lt;/P&gt;

&lt;P&gt;You could either use &lt;CODE&gt;eval starttime=strptime(starttime,"%m/%d/%Y:%H:%M:%S")&lt;/CODE&gt; or just &lt;CODE&gt;eval start_time=starttime&lt;/CODE&gt; to get the epoch. Similarly for endtime&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jul 2018 12:52:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417315#M168603</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-02T12:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: display start and endtime in results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417316#M168604</link>
      <description>&lt;P&gt;I have tried both but 0 events get returned from either:&lt;/P&gt;

&lt;P&gt;starttime=07/01/2018:00:00:00 endtime=07/01/2018:00:01:00  eval start_time=starttime | table start_time&lt;/P&gt;

&lt;P&gt;or&lt;/P&gt;

&lt;P&gt;starttime=07/01/2018:00:00:00 endtime=07/01/2018:00:01:00  eval start_time=strptime(starttime,"%m/%d/%Y:%H:%M:%S") | table start_time&lt;/P&gt;

&lt;P&gt;I'm using splunk 6.5&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 20:15:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417316#M168604</guid>
      <dc:creator>dtakacssplunk</dc:creator>
      <dc:date>2020-09-29T20:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: display start and endtime in results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417317#M168605</link>
      <description>&lt;P&gt;Are you getting events for your existing search ie.&lt;CODE&gt;starttime=06/08/2018:00:00:00 endtime=06/08/2018:00:01:00 index=&lt;/CODE&gt;. Can you post a sample event result?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 02:21:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417317#M168605</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-03T02:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: display start and endtime in results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417318#M168606</link>
      <description>&lt;P&gt;yes definitely I do get results for:&lt;BR /&gt;
        starttime=06/08/2018:00:00:00 endtime=06/08/2018:00:01:00 index=*&lt;BR /&gt;
(put * after index)&lt;/P&gt;

&lt;P&gt;I cannot post a sample event result.  &lt;/P&gt;

&lt;P&gt;Do the queries I put above work for your splunk instance?  &lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2018 03:34:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417318#M168606</guid>
      <dc:creator>dtakacssplunk</dc:creator>
      <dc:date>2018-07-03T03:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: display start and endtime in results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417319#M168607</link>
      <description>&lt;P&gt;I dont have events for these dates but the below dummy search works for me .&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|makeresults|eval starttime="06/08/2018:00:00:00" |eval endtime="06/08/2018:00:01:00"|eval start_time=strptime(starttime,"%m/%d/%Y:%H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jul 2018 05:01:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417319#M168607</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2018-07-03T05:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: display start and endtime in results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417320#M168608</link>
      <description>&lt;P&gt;Why would you run a search every minute to look for the last minute?  This would be both very wasteful and does not account for forwarding pipeline latency (a typical average latency from when the event happened to when it gets indexed is ~250 seconds, which is longer than 60 seconds).  Let's back up and tell us what data you have (SHOW SAMPLE EVENTS) and explain what you are trying to achieve (forget about SPL for now).&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jul 2018 00:41:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417320#M168608</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2018-07-16T00:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: display start and endtime in results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417321#M168609</link>
      <description>&lt;P&gt;my intention is to copy events out of splunk into some other store.  I would like to periodically run a query and copy the splunk data somewhere else.  &lt;/P&gt;

&lt;P&gt;certain cases the splunk instance is down / times out queries / events show up later then indexing time... &lt;/P&gt;

&lt;P&gt;usually i could have gotten let's say every hour results and appended to the exported dataset the results.  but I do want to upsert.  in the upsert key I want to use the starttime &lt;/P&gt;

&lt;P&gt;anyways seems like starttime / endtime are very special parameters which cannot be used in the table being created&lt;/P&gt;</description>
      <pubDate>Thu, 02 Aug 2018 13:49:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/display-start-and-endtime-in-results/m-p/417321#M168609</guid>
      <dc:creator>dtakacssplunk</dc:creator>
      <dc:date>2018-08-02T13:49:12Z</dc:date>
    </item>
  </channel>
</rss>

