<?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 How can I create extract the earliest and latest times for current search and create fields for them? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-extract-the-earliest-and-latest-times-for/m-p/244196#M189049</link>
    <description>&lt;P&gt;I would like to display the original earliest and latest of a search as fields in my table results. My query below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex msg_severity=ERROR | timechart span=15m count by field_TEXT  | untable _time field_TEXT count | eval count = if(count=0,1,count) | streamstats window=2 global=f current=t first(count) As p_count by field_TEXT | eval percent_change=((count-p_count)/(p_count))*100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to add something like this to the end of my search to show the earliest and latest of the search on every row&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval start=$earliest | eval end=$latest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this possible?&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2016 20:33:01 GMT</pubDate>
    <dc:creator>jedatt01</dc:creator>
    <dc:date>2016-03-09T20:33:01Z</dc:date>
    <item>
      <title>How can I create extract the earliest and latest times for current search and create fields for them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-extract-the-earliest-and-latest-times-for/m-p/244196#M189049</link>
      <description>&lt;P&gt;I would like to display the original earliest and latest of a search as fields in my table results. My query below.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex msg_severity=ERROR | timechart span=15m count by field_TEXT  | untable _time field_TEXT count | eval count = if(count=0,1,count) | streamstats window=2 global=f current=t first(count) As p_count by field_TEXT | eval percent_change=((count-p_count)/(p_count))*100
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to add something like this to the end of my search to show the earliest and latest of the search on every row&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval start=$earliest | eval end=$latest
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is this possible?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 20:33:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-extract-the-earliest-and-latest-times-for/m-p/244196#M189049</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2016-03-09T20:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create extract the earliest and latest times for current search and create fields for them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-extract-the-earliest-and-latest-times-for/m-p/244197#M189050</link>
      <description>&lt;P&gt;You can use the addinfo command for that:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Addinfo"&gt;http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Addinfo&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 20:55:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-extract-the-earliest-and-latest-times-for/m-p/244197#M189050</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-03-09T20:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create extract the earliest and latest times for current search and create fields for them?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-extract-the-earliest-and-latest-times-for/m-p/244198#M189051</link>
      <description>&lt;P&gt;Exactly what i needed!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 21:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-create-extract-the-earliest-and-latest-times-for/m-p/244198#M189051</guid>
      <dc:creator>jedatt01</dc:creator>
      <dc:date>2016-03-09T21:14:23Z</dc:date>
    </item>
  </channel>
</rss>

