<?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: How do I find the first firewall entry? in Security</title>
    <link>https://community.splunk.com/t5/Security/How-do-I-find-the-first-firewall-entry/m-p/401951#M9734</link>
    <description>&lt;P&gt;That is exactly what I was looking for. Thank You!&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2019 19:38:00 GMT</pubDate>
    <dc:creator>nick598660</dc:creator>
    <dc:date>2019-02-19T19:38:00Z</dc:date>
    <item>
      <title>How do I find the first firewall entry?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-find-the-first-firewall-entry/m-p/401949#M9732</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;

&lt;P&gt;I need some help figuring out how far back my firewall logs go. If I set the time picker to "All Time", and just search for Cisco ASA, I get 20 pages of events from today. &lt;/P&gt;

&lt;P&gt;Any ideas on how I can locate when I first started getting logs into Splunk from my firewall?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 15:45:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-find-the-first-firewall-entry/m-p/401949#M9732</guid>
      <dc:creator>nick598660</dc:creator>
      <dc:date>2019-02-19T15:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the first firewall entry?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-find-the-first-firewall-entry/m-p/401950#M9733</link>
      <description>&lt;P&gt;Hello @nick598660,&lt;/P&gt;

&lt;P&gt;You can use the &lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.4/SearchReference/Metadata"&gt;metadata&lt;/A&gt; command to list the timestamps of the first event and of last the event for a list of sourcetypes/hosts/sources.&lt;/P&gt;

&lt;P&gt;Try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| metadata type=sourcetypes index=YOURINDEX
| rename firstTime as "First Event" lastTime as "Last Event" recentTime as "Last Update"
| fieldformat "First Event"=strftime('First Event', "%c") | fieldformat "Last Event"=strftime('Last Event', "%c") | fieldformat "Last Update"=strftime('Last Update', "%c")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The web page under Settings / Indexes also lists the earliest event and the latest event for each index.&lt;/P&gt;

&lt;P&gt;If the log volume is not too big, then you could also run a simple tail command to retrieve the first event. Set the time picker to "All Time":&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=YOURINDEX sourcetype=YOURSOURCETYPE | tail 1
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Feb 2019 18:05:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-find-the-first-firewall-entry/m-p/401950#M9733</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2019-02-19T18:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I find the first firewall entry?</title>
      <link>https://community.splunk.com/t5/Security/How-do-I-find-the-first-firewall-entry/m-p/401951#M9734</link>
      <description>&lt;P&gt;That is exactly what I was looking for. Thank You!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 19:38:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/How-do-I-find-the-first-firewall-entry/m-p/401951#M9734</guid>
      <dc:creator>nick598660</dc:creator>
      <dc:date>2019-02-19T19:38:00Z</dc:date>
    </item>
  </channel>
</rss>

