<?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 parsing checkpoint firewall log dates in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/parsing-checkpoint-firewall-log-dates/m-p/42578#M7946</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I'm using the 'fw log -l -n -p ' command to dump some old firewall logs to text to get them into splunk 4.1.x. Splunk doesn't seem to want to parse the event dates correctly and I think it is ending up using the timestamp from the text file itself. The date and time in each event can look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;' 1Jan2011  0:00:09  ...rest of event'
' 1Jan2011 20:00:09 ...'
'11Jan2011  0:00:09 ...'
'11Jan2011 20:00:09 ...'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Notice the space at the start of the event sometimes and there is also either a single or double space between the date and the time.&lt;/P&gt;

&lt;P&gt;How can I teach splunk to recognise this date time stamp?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2011 10:52:27 GMT</pubDate>
    <dc:creator>mpf</dc:creator>
    <dc:date>2011-02-11T10:52:27Z</dc:date>
    <item>
      <title>parsing checkpoint firewall log dates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parsing-checkpoint-firewall-log-dates/m-p/42578#M7946</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;I'm using the 'fw log -l -n -p ' command to dump some old firewall logs to text to get them into splunk 4.1.x. Splunk doesn't seem to want to parse the event dates correctly and I think it is ending up using the timestamp from the text file itself. The date and time in each event can look like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;' 1Jan2011  0:00:09  ...rest of event'
' 1Jan2011 20:00:09 ...'
'11Jan2011  0:00:09 ...'
'11Jan2011 20:00:09 ...'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Notice the space at the start of the event sometimes and there is also either a single or double space between the date and the time.&lt;/P&gt;

&lt;P&gt;How can I teach splunk to recognise this date time stamp?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2011 10:52:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parsing-checkpoint-firewall-log-dates/m-p/42578#M7946</guid>
      <dc:creator>mpf</dc:creator>
      <dc:date>2011-02-11T10:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: parsing checkpoint firewall log dates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parsing-checkpoint-firewall-log-dates/m-p/42579#M7947</link>
      <description>&lt;P&gt;If Splunk doesn't recognize those timestamps, use the following in props.conf:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[checkpoint]
TIME_FORMAT=%e%b%Y %k:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set your sourcetype to "checkpoint" and this will teach Splunk to recognize the timestamps.&lt;/P&gt;

&lt;P&gt;By the way, there are Check Point apps posted here, if you want LEA integration:
&lt;A href="http://splunkbase.splunk.com/apps/All/4.x/app:OPSEC+LEA+for+Check+Point+(Linux" rel="nofollow"&gt;http://splunkbase.splunk.com/apps/All/4.x/app:OPSEC+LEA+for+Check+Point+(Linux&lt;/A&gt;)
&lt;A href="http://splunkbase.splunk.com/apps/All/4.x/app:OPSEC+LEA+for+Check+Point+(Solaris" rel="nofollow"&gt;http://splunkbase.splunk.com/apps/All/4.x/app:OPSEC+LEA+for+Check+Point+(Solaris&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2011 14:19:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parsing-checkpoint-firewall-log-dates/m-p/42579#M7947</guid>
      <dc:creator>Ron_Naken</dc:creator>
      <dc:date>2011-02-11T14:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: parsing checkpoint firewall log dates</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/parsing-checkpoint-firewall-log-dates/m-p/42580#M7948</link>
      <description>&lt;P&gt;Thanks that worked. Note that the Splunk docs for TIME_FORMAT refer to strptime() man pages but it is doesn't have a %k. The strftime() man pages do.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2011 13:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/parsing-checkpoint-firewall-log-dates/m-p/42580#M7948</guid>
      <dc:creator>mpf</dc:creator>
      <dc:date>2011-02-14T13:36:53Z</dc:date>
    </item>
  </channel>
</rss>

