Manual Syslog Parsing
To parse a syslog file:
-
Create a new parsing file called <device product name>.C.
-
Put this file in the directory $FWDIR/conf/syslog/UserDefined on the Log Server
Dedicated Check Point server that runs Check Point software to store and process logs..
-
On the Log Server, edit the file $FWDIR/conf/syslog/UserDefined/UserDefinedSyslogDevices.C to add a line that includes the new parsing file. For example:
: (
:command (
:cmd_name (include)
:file_name ("snortPolicy.C")
)
)
-
Optional: If required.
-
Create a new dictionary file called <device product name>_dict.ini. See Dictionary.
-
Put it in the directory $FWDIR/conf/syslog/UserDefined on the Log Server.
A dictionary translates values with the same meaning from logs from different devices into a common value. This common value is used in the Event
Record of a security or network incident that is based on one or more logs, and on a customizable set of rules that are defined in the Event Policy. Definitions.
-
Edit the file $FWDIR/conf/syslog/UserDefined/UserDefinedSyslogDictionaries.C on the Log Server.
-
Add a line to include the dictionary file. For example:
:filename ("snort_dict.ini")
-
-
To examine the parsing, send syslog samples to a Check Point Log Server.
To send syslog samples:
-
To configure the Log Server to accept syslogs, connect to the Security Management Server
Dedicated Check Point server that runs Check Point software to manage the objects and policies in a Check Point environment within a single management Domain. Synonym: Single-Domain Security Management Server. with SmartConsole
Check Point GUI application used to manage a Check Point environment - configure Security Policies, configure devices, monitor products and events, install updates, and so on..
-
In Logs and Masters > Additional Logging Configuration, enable the property Accept Syslog messages.
-
Edit the Log Server network object.
-
Run the commands
cpstop
&cpstart
, or fw kill fwd &fwd -n
.The fwd procedure on the Log Server restarts.
-
Send syslogs from the device itself, or from a syslog generator.
For example: Kiwi Syslog Message Generator, available at
http://www.kiwisyslog.com/software_downloads.htm#sysloggen.
Troubleshooting:
If SmartConsole does not show the logs as expected, there can be problems with the parsing files:
-
If there is a syntax error in the parsing files, an error message shows. To read a specified error message, set the TDERROR_ALL_FTPARSER value to 5 before you run the procedure fwd -n.
-
If the syslogs show in SmartConsole with 'Product syslog', the log was not parsed properly, but as a general syslog.
-
If the Product field contains another product (not the one you have just added) this means there is a problem with the other product parsing file. Report
Summary of network activity and Security Policy enforcement that is generated by Check Point products, such as SmartEvent. this to the Check Point SmartEvent team.
-
If the product reports correctly in the log, look for all the fields you extracted. Some of them are in the Information section. Some fields can be seen only when you select More Columns.