<?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: Retrieving latest timestamp from CSV file such that it is smaller than event time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133647#M36499</link>
    <description>&lt;P&gt;If I choose a smaller time range, example: 29 April - 2 May, then I always see two MAC addresses. So, setting up minspan is not enough or am I missing something?&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jun 2015 07:24:00 GMT</pubDate>
    <dc:creator>andra_pietraru</dc:creator>
    <dc:date>2015-06-03T07:24:00Z</dc:date>
    <item>
      <title>Retrieving latest timestamp from CSV file such that it is smaller than event time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133643#M36495</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am using lookups to get some metadata from a CSV file that also has timestamps. &lt;/P&gt;

&lt;P&gt;How could I retrieve the latest (maximum) timestamp from the CSV such that it is smaller than the event time? Is there any command that can do that? I tried stats and max, but that only finds the maximum without taking into consideration the second condition.&lt;BR /&gt;
Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 11:23:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133643#M36495</guid>
      <dc:creator>andra_pietraru</dc:creator>
      <dc:date>2015-06-02T11:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving latest timestamp from CSV file such that it is smaller than event time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133644#M36496</link>
      <description>&lt;P&gt;No one command can do that.  Filter first for smaller times then look for max.  Something like &lt;CODE&gt;... | where csvTime &amp;lt; _time | stats max(csvTime) | ...&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 12:14:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133644#M36496</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-06-02T12:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving latest timestamp from CSV file such that it is smaller than event time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133645#M36497</link>
      <description>&lt;P&gt;Just to make it more clear: based on IP addresses I retrieve MAC addresses and timestamps from the CSV file. I will retrieve several timestamps  for each IP address. What I want to achieve is to make a timechart where I can  see the MAC addresses in time. So, for example, if I have 2 MAC address with timestamp 1st of April  and then I have only one MAC address  with timestamp 1st of May for IP "::1", I want to see that in the timechart. Hence, from 1st April to 1st May IP "::1" should have two MAC addresses and starting 1st of May only one MAC address.&lt;BR /&gt;
Do you have any suggestions? Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 12:42:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133645#M36497</guid>
      <dc:creator>andra_pietraru</dc:creator>
      <dc:date>2015-06-02T12:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving latest timestamp from CSV file such that it is smaller than event time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133646#M36498</link>
      <description>&lt;P&gt;Get the data from the CSV, but don't worry about smaller times.  Let the bucketing feature of the timechart command handle that for you.  Something like &lt;CODE&gt;... | timechart minspan=1mon count by MAC&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jun 2015 13:10:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133646#M36498</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-06-02T13:10:09Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving latest timestamp from CSV file such that it is smaller than event time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133647#M36499</link>
      <description>&lt;P&gt;If I choose a smaller time range, example: 29 April - 2 May, then I always see two MAC addresses. So, setting up minspan is not enough or am I missing something?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 07:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133647#M36499</guid>
      <dc:creator>andra_pietraru</dc:creator>
      <dc:date>2015-06-03T07:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving latest timestamp from CSV file such that it is smaller than event time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133648#M36500</link>
      <description>&lt;P&gt;You may indeed be missing something, but I don't know what that would be.  &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jun 2015 15:44:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Retrieving-latest-timestamp-from-CSV-file-such-that-it-is/m-p/133648#M36500</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-06-03T15:44:03Z</dc:date>
    </item>
  </channel>
</rss>

