<?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: Get the timestamp of stats latest(field) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437759#M124637</link>
    <description>&lt;P&gt;Field names with spaces are evil.&lt;/P&gt;</description>
    <pubDate>Thu, 02 May 2019 16:58:03 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2019-05-02T16:58:03Z</dc:date>
    <item>
      <title>Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437751#M124629</link>
      <description>&lt;P&gt;I'm currently getting the latest value of a field like:  | stats  latest("field").&lt;BR /&gt;
However It only shows the column with the value and it doesn't show the column with the timestamp. &lt;BR /&gt;
If i add latest("_time" ) that wont work if there are other newer entries that don't include the field I'm aiming for.&lt;BR /&gt;
How can I retrieve the latest value of a field with its timestamp?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 15:58:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437751#M124629</guid>
      <dc:creator>artrune</dc:creator>
      <dc:date>2019-05-02T15:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437752#M124630</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;|  stats latest(fieldname) by _time
| reverse
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;???&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:43:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437752#M124630</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2019-05-02T16:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437753#M124631</link>
      <description>&lt;P&gt;You can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | stats max(_time) AS _time BY field | sort 0 - _time | head 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 02 May 2019 16:44:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437753#M124631</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-02T16:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437754#M124632</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/6972i346CE1BE17DBAAE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;Thanks, but it comes with alot of dates and values and not the latest value for the field&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:47:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437754#M124632</guid>
      <dc:creator>artrune</dc:creator>
      <dc:date>2019-05-02T16:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437755#M124633</link>
      <description>&lt;P&gt;Thanks for your reply, I tried that but it didnt return anything.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:49:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437755#M124633</guid>
      <dc:creator>artrune</dc:creator>
      <dc:date>2019-05-02T16:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437756#M124634</link>
      <description>&lt;P&gt;Thanks for your reply aswell, When trying this it returns a lot of time stamps and and values.&lt;BR /&gt;
 I want only the latest value for my field with its timestamp&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:49:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437756#M124634</guid>
      <dc:creator>artrune</dc:creator>
      <dc:date>2019-05-02T16:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437757#M124635</link>
      <description>&lt;P&gt;&lt;IMG src="http://i67.tinypic.com/2woklsi.png" alt="alt text" /&gt;This is what i currently have and want to add the timestamp column&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:51:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437757#M124635</guid>
      <dc:creator>artrune</dc:creator>
      <dc:date>2019-05-02T16:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437758#M124636</link>
      <description>&lt;P&gt;Nevermind, this did work but i h ad to put my field inside double quotes. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:53:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437758#M124636</guid>
      <dc:creator>artrune</dc:creator>
      <dc:date>2019-05-02T16:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437759#M124637</link>
      <description>&lt;P&gt;Field names with spaces are evil.&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 16:58:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437759#M124637</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-02T16:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437760#M124638</link>
      <description>&lt;P&gt;Hmm its funny, because it worked on the search (inside splunk) but when calling through the api im not getting any response. With the previous query i would get response on the API. &lt;BR /&gt;
Do you have any idea?&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 17:01:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437760#M124638</guid>
      <dc:creator>artrune</dc:creator>
      <dc:date>2019-05-02T17:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get the timestamp of stats latest(field)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437761#M124639</link>
      <description>&lt;P&gt;Nevermind haha i was missing the double quotes inside my code. Just had to escape them.&lt;BR /&gt;
Thanks for the help&lt;/P&gt;</description>
      <pubDate>Thu, 02 May 2019 17:04:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Get-the-timestamp-of-stats-latest-field/m-p/437761#M124639</guid>
      <dc:creator>artrune</dc:creator>
      <dc:date>2019-05-02T17:04:46Z</dc:date>
    </item>
  </channel>
</rss>

