<?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: what is the time field for latest after tstats? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-time-field-for-latest-after-tstats/m-p/689618#M234980</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268682"&gt;@OriP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls try something similar from this post -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-streamstats-command-after-tstats-and-stats/m-p/388189" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-streamstats-command-after-tstats-and-stats/m-p/388189&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 23:39:42 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2024-06-04T23:39:42Z</dc:date>
    <item>
      <title>what is the time field for latest after tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-time-field-for-latest-after-tstats/m-p/689615#M234978</link>
      <description>&lt;P&gt;Trying to understand what is the time field after tstats.&lt;/P&gt;
&lt;P&gt;We have the _time field for every event, thats how tstats finds latest event, but what is the latest for a stats that comes after tstats?&lt;/P&gt;
&lt;P&gt;for example&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;| tstats latest(var1) as var1 by var2 var3

| eval var4 = ………..

| stats latest(var4) by var3&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 04 Jun 2024 22:29:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-time-field-for-latest-after-tstats/m-p/689615#M234978</guid>
      <dc:creator>OriP</dc:creator>
      <dc:date>2024-06-04T22:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: what is the time field for latest after tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-time-field-for-latest-after-tstats/m-p/689618#M234980</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/268682"&gt;@OriP&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pls try something similar from this post -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-streamstats-command-after-tstats-and-stats/m-p/388189" target="_blank"&gt;https://community.splunk.com/t5/Splunk-Search/How-do-you-use-the-streamstats-command-after-tstats-and-stats/m-p/388189&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 23:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-time-field-for-latest-after-tstats/m-p/689618#M234980</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2024-06-04T23:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: what is the time field for latest after tstats?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/what-is-the-time-field-for-latest-after-tstats/m-p/689621#M234981</link>
      <description>&lt;P&gt;There is no _time field after a tstats, so you either have to split by _time or add something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats max(_time) as _time...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but it depends on what you're trying to achieve as to what you need to do&lt;/P&gt;&lt;P&gt;You can also use&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| tstats latest_time(var1) as _time...&lt;/LI-CODE&gt;&lt;P&gt;which will give you the latest _time the var1 variable was seen&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 00:36:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/what-is-the-time-field-for-latest-after-tstats/m-p/689621#M234981</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2024-06-05T00:36:02Z</dc:date>
    </item>
  </channel>
</rss>

