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.
- 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.
- 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 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 with SmartConsole.
- In > , enable the property .
- Edit the Log Server network object.
- Run the commands
cpstop
& cpstart
, or & 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 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 section. Some fields can be seen only when you select .