fwm logexport
Description
Exports a Security log file ($FWDIR/log/*.log
) or Audit log file ($FWDIR/log/*.adtlog
) to an ASCII file.
|
Note: On a Multi-Domain Server Dedicated Check Point server that runs Check Point software to host virtual Security Management Servers called Domain Management Servers. Synonym: Multi-Domain Security Management Server. Acronym: MDS., you must run this command in the context of the applicable Domain Management Server Check Point Single-Domain Security Management Server or a Multi-Domain Security Management Server.:
|
Syntax
|
|
Parameters
Parameter |
Description |
||
---|---|---|---|
|
Shows the built-in usage. |
||
|
Runs the command in debug mode. Use only if you troubleshoot the command itself.
For complete debug instructions, see the description of the |
||
|
Specifies the output delimiter between fields of log entries:
Note - If you do not specify the delimiter explicitly, the default is a semicolon ( |
||
|
Specifies the output delimiter inside table field. Table field would look like: ROWx:COL0,ROWx:COL1,ROWx:COL2, and so on Note - If you do not specify the table delimiter explicitly, the default is a comma ( |
||
|
Specifies the name of the input log file. Notes:
|
||
|
Specifies the name of the output file. Note - If you do not specify the output log file explicitly, the command prints its output on the screen. |
||
|
After reaching the end of the currently opened log file, specifies to continue to monitor the log file indefinitely and export the new entries as well. Note - Applies only to the active log file: |
||
|
After reaching the end of the currently opened log file, continue to monitor the log file indefinitely and export the new entries as well. Note - Applies only to the active log file: |
||
|
Starts exporting the log entries from the specified log entry number and below, counting from the beginning of the log file. |
||
|
Starts exporting the log entries until the specified log entry number, counting from the beginning of the log file. |
||
|
In case of an error (for example, wrong field value), specifies to continue the export of log entries. The default behavior is to stop. |
||
|
Specifies not to perform DNS resolution of the IP addresses in the log file (this is the default behavior). This significantly speeds up the log processing. |
||
|
Specifies to not to perform resolution of the port numbers in the log file (this is the default behavior). This significantly speeds up the log processing. |
||
|
Exports only Account log entries. |
||
|
Specifies the path and name of the log unification scheme file. The default log unification scheme file is:
|
||
|
Specifies the log unification mode:
|
The output of the fwm logexport
command appears in tabular format.
The first row lists the names of all log fields included in the log entries.
Each of the next rows consists of a single log entry, whose fields are sorted in the same order as the first row.
If a log entry has no information in a specific field, this field remains empty (as indicated by two successive semi-colons ";;
").
You can control which log fields appear in the output of the command output:
Step |
Instructions |
|
---|---|---|
1 |
Create the
|
|
2 |
Edit the
|
|
3 |
To include or exclude the log fields from the output, add these lines in the configuration file:
Where:
|
|
4 |
Save the changes in the file and exit the Vi editor. |
|
5 |
Export the logs:
|
Example 1 - Exporting all log entries
Example 2 - Exporting only log entries with specified numbers