<?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: Checkpoint Firewall Logs in Splunk in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74909#M15307</link>
    <description>&lt;P&gt;Thanks hazedav and gkanapathy. I went the FIELDS/DELIMS route and got the header extraction to work as well.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2011 00:20:48 GMT</pubDate>
    <dc:creator>dpatnam</dc:creator>
    <dc:date>2011-04-06T00:20:48Z</dc:date>
    <item>
      <title>Checkpoint Firewall Logs in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74904#M15302</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;

&lt;P&gt;I am trying to import some of my Checkpoint firewall logs into Splunk. I tried to setup a sample input to index the text format of these logs, but am running into issues with the header and timestamp extraction -&lt;/P&gt;

&lt;P&gt;Here's a sample (pruned down) semi-colon separated input from the logs -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;num;date;time;orig;type
0;22Mar2011;0:55:11;0.0.0.0;control
1;21Mar2011;7:09:41;0.0.0.1;log
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here are the entries in my props.conf to extract the timestamp and the header info for these logs - &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_PREFIX = ^\d+;
TIME_FORMAT = %DD%MMM%YYYY;%H:%M:%S
SHOULD_LINEMERGE = false
TZ=GMT
CHECK_FOR_HEADER = true
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;However, it looks like Splunk is only recognizing the time and the timezone configuration but it is setting the date to the current day (Apr 5th) and is also not extracting any of the headers for the events. Any help in figuring out where I am going wrong would be greatly appreciated.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2011 22:04:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74904#M15302</guid>
      <dc:creator>dpatnam</dc:creator>
      <dc:date>2011-04-05T22:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint Firewall Logs in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74905#M15303</link>
      <description>&lt;P&gt;dpatnam,&lt;/P&gt;

&lt;P&gt;For TIME_FORMAT be sure to use strptime specifiers like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;TIME_FORMAT = %d%B%Y;%H:%M:%S
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;See also:
&lt;A href="http://docs.python.org/library/time.html" rel="nofollow"&gt;http://docs.python.org/library/time.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2011 23:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74905#M15303</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2011-04-05T23:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint Firewall Logs in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74906#M15304</link>
      <description>&lt;P&gt;Thanks hazedav. Just a shortwhile before you posted the answers, I found another link that has all the time specifiers (&lt;A href="http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html"&gt;http://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;After referring to the specifiers in this link , I changed the TIME_FORMAT as shown below and am now able  to extract the correct date as well. &lt;/P&gt;

&lt;P&gt;TIME_FORMAT = %d%b%Y;%H:%M:%S&lt;/P&gt;

&lt;P&gt;The only outstanding item for me now is the header extraction. I am still looking into this.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2011 23:34:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74906#M15304</guid>
      <dc:creator>dpatnam</dc:creator>
      <dc:date>2011-04-05T23:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint Firewall Logs in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74907#M15305</link>
      <description>&lt;P&gt;I would highly discourage CHECK_FOR_HEADER and recommend FIELDS/DELIMS&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:27:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74907#M15305</guid>
      <dc:creator>hazekamp</dc:creator>
      <dc:date>2020-09-28T09:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint Firewall Logs in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74908#M15306</link>
      <description>&lt;P&gt;Agree with Dave. Do not use &lt;CODE&gt;CHECK_FOR_HEADER&lt;/CODE&gt;, certainly not if your fields are known and fixed. Just specify the fields and delims manually.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2011 23:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74908#M15306</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2011-04-05T23:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint Firewall Logs in Splunk</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74909#M15307</link>
      <description>&lt;P&gt;Thanks hazedav and gkanapathy. I went the FIELDS/DELIMS route and got the header extraction to work as well.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2011 00:20:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Checkpoint-Firewall-Logs-in-Splunk/m-p/74909#M15307</guid>
      <dc:creator>dpatnam</dc:creator>
      <dc:date>2011-04-06T00:20:48Z</dc:date>
    </item>
  </channel>
</rss>

