<?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 to search the latest timestamp each user received their last email? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153567#M43114</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;
I need to search when (timestamp) each user has received the last email.&lt;BR /&gt;
Is this possible?&lt;BR /&gt;
I tried&lt;BR /&gt;
&lt;STRONG&gt;to="&amp;lt;*@domain.com&amp;gt;" | stats count by to | sort -_time&lt;/STRONG&gt;&lt;BR /&gt;
but this does not seem to display the time...&lt;BR /&gt;
sorry - I am pretty new to splunk...&lt;BR /&gt;
TIA!&lt;BR /&gt;
Mike&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jun 2015 07:04:23 GMT</pubDate>
    <dc:creator>Mufu</dc:creator>
    <dc:date>2015-06-11T07:04:23Z</dc:date>
    <item>
      <title>How to search the latest timestamp each user received their last email?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153567#M43114</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I need to search when (timestamp) each user has received the last email.&lt;BR /&gt;
Is this possible?&lt;BR /&gt;
I tried&lt;BR /&gt;
&lt;STRONG&gt;to="&amp;lt;*@domain.com&amp;gt;" | stats count by to | sort -_time&lt;/STRONG&gt;&lt;BR /&gt;
but this does not seem to display the time...&lt;BR /&gt;
sorry - I am pretty new to splunk...&lt;BR /&gt;
TIA!&lt;BR /&gt;
Mike&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2015 07:04:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153567#M43114</guid>
      <dc:creator>Mufu</dc:creator>
      <dc:date>2015-06-11T07:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the latest timestamp each user received their last email?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153568#M43115</link>
      <description>&lt;P&gt;That should be pretty straightforward: make a &lt;CODE&gt;stats&lt;/CODE&gt; with &lt;CODE&gt;latest&lt;/CODE&gt; of whichever field you want to see the most recent of, in your case _time to get the timestamp. You end up with something this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;to="&amp;lt;*@allianz.co.uk&amp;gt;" | stats latest(_time) as time by user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to display the timestamp in human readable format, use the following eval&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;to="&amp;lt;*@allianz.co.uk&amp;gt;" | stats latest(_time) as time by user | eval t=strftime(time, "%D - %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jun 2015 07:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153568#M43115</guid>
      <dc:creator>jeffland</dc:creator>
      <dc:date>2015-06-11T07:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the latest timestamp each user received their last email?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153569#M43116</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=_internal *INFO* "sendemail:354"| stats latest(_time) as time by recipients | eval t=strftime(time, "%D - %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jun 2015 07:39:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153569#M43116</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2015-06-11T07:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the latest timestamp each user received their last email?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153570#M43117</link>
      <description>&lt;P&gt;WHOA! That was quick! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;
I just had to change&lt;BR /&gt;
&lt;EM&gt;as time by user&lt;/EM&gt;&lt;BR /&gt;
to&lt;BR /&gt;
&lt;EM&gt;as time by to&lt;/EM&gt;&lt;BR /&gt;
and that´s it!&lt;BR /&gt;
Thank you so much!&lt;/P&gt;

&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2015 07:42:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153570#M43117</guid>
      <dc:creator>Mufu</dc:creator>
      <dc:date>2015-06-11T07:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to search the latest timestamp each user received their last email?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153571#M43118</link>
      <description>&lt;P&gt;Did u able to view the results of email address by time, with the above query i posted ?&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal INFO "sendemail:354"| stats values(_time) as time by recipients | eval t=strftime(time, "%D - %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal INFO "sendemail:354"| eval t=strftime(_time, "%D - %H:%M:%S")|stats values(recipients) as Receipients by t
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;the above gets u address by time - for any specified time-range&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2015 07:43:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-the-latest-timestamp-each-user-received-their-last/m-p/153571#M43118</guid>
      <dc:creator>splunker12er</dc:creator>
      <dc:date>2015-06-11T07:43:17Z</dc:date>
    </item>
  </channel>
</rss>

