Description
Exports a Security log file (
) or Audit log file ($FWDIR/log/*.log
) to ASCII file.$FWDIR/log/*.adtlog
Note - On Multi-Domain Server, you must run this command in the context of the applicable Domain Management Server (
IP Address or Name of Domain Management Servermdsenv <
>
).
Syntax
fwm logexport -h |
fwm [-d] logexport [{-d <Delimiter> | -s}] [-t <Table Delimiter>] [ |
Parameters
Item |
Description |
---|---|
|
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, continue to monitor the log file indefinitely and export the new entries as well. Note - Applies only to 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 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), continue to export log entries. The default behavior is to stop. |
|
Do not perform DNS resolution of the IP addresses in the log file (this is the default behavior). This significantly speeds up the log processing. |
|
Do not 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:
|
|
Specify the log unification mode:
|
The
output 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 "fwm logexport
"). You can control which log fields appear in the output of the ;;
command:fwm logexport
Step |
Description |
---|---|
1 |
Create the
|
2 |
Edit the
|
3 |
To include or exclude the log fields from the output, add these lines in the configuration file: [Fields_Info] included_fields = field1,field2,field3,<REST_OF_FIELDS>,field100 excluded_fields = field10,field11 Where: The The
You can specify only the |
4 |
Save the changes in the file and exit the Vi editor. |
5 |
Run the |
Example 1 - Exporting all log entries
[Expert@MGMT:0]# fwm logexport -i MySwitchedLog.log Starting... There are 113 log records in the file num;date;time;orig;type;action;alert;i/f_name;i/f_dir;product;LogId;ContextNum;origin_id;ContentVersion;HighLevelLogKey;SequenceNum;log_sys_message;ProductFamily;fg-1_client_in_rule_name;fg-1_client_out_rule_name;fg-1_server_in_rule_name;fg-1_server_out_rule_name;description;status;version;comment;update_service;reason;Severity;failure_impact 0;13Jun2018;19:47:54;CXL1_192.168.3.52;control; ;;daemon;inbound;VPN-1 & FireWall-1;-1;-1;CN=CXL1_192.168.3.52,O=MyDomain_Server.checkpoint.com.s6t98x;5;18446744073709551615;2;Log file has been switched to: MyLog.log;Network;;;;;;;;;;;; 1;13Jun2018;19:47:54;CXL1_192.168.3.52;account;accept;;;inbound;FG;-1;-1;CN=CXL1_192.168.3.52,O=MyDomain_Server.checkpoint.com.s6t98x;5;18446744073709551615;1;;Network;Default;Default;;;;;;;;;; ... ... 35;13Jun2018;19:55:59;CXL1_192.168.3.52;account;accept;;;inbound;FG;-1;-1;CN=CXL1_192.168.3.52,O=MyDomain_Server.checkpoint.com.s6t98x;5;18446744073709551615;1;;Network;Default;Default;Host Redirect;;;;;;;;; 36;13Jun2018;19:56:06;CXL1_192.168.3.52;control; ;;;inbound;Security Gateway/Management;-1;-1;CN=CXL1_192.168.3.52,O=MyDomain_Server.checkpoint.com.s6t98x;5;18446744073709551615;1;;Network;;;;;Contracts;Started;1.0;<null>;1;;; ... ... 47;13Jun2018;19:57:02;CXL1_192.168.3.52;control; ;;;inbound;Security Gateway/Management;-1;-1;CN=CXL1_192.168.3.52,O=MyDomain_Server.checkpoint.com.s6t98x;5;18446744073709551615;1;;Network;;;;;Contracts;Failed;1.0;;1;Could not reach "https://productcoverage.checkpoint.com/ProductCoverageService". Check DNS and Proxy configuration on the gateway.;2;Contracts may be out-of-date ... ... [Expert@MGMT:0]# |
Example 2 - Exporting only log entries with specified numbers
[Expert@MGMT:0]# fwm logexport -i MySwitchedLog.log -x 36 -y 47 Starting... There are 113 log records in the file num;date;time;orig;type;action;alert;i/f_name;i/f_dir;product;LogId;ContextNum;origin_id;ContentVersion;HighLevelLogKey;SequenceNum;log_sys_message;ProductFamily;fg-1_client_in_rule_name;fg-1_client_out_rule_name;fg-1_server_in_rule_name;fg-1_server_out_rule_name;description;status;version;comment;update_service;reason;Severity;failure_impact 36;13Jun2018;19:56:06;CXL1_192.168.3.52;control; ;;;inbound;Security Gateway/Management;-1;-1;CN=CXL1_192.168.3.52,O=MyDomain_Server.checkpoint.com.s6t98x;5;18446744073709551615;1;;Network;;;;;Contracts;Started;1.0;<null>;1;;; 37;13Jun2018;19:56:06;CXL1_192.168.3.52;account;accept;;;inbound;FG;-1;-1;CN=CXL1_192.168.3.52,O=MyDomain_Server.checkpoint.com.s6t98x;5;18446744073709551615;2;;Network;Default;Default;Host Redirect;;;;;;;;; ... ... 46;13Jun2018;19:56:59;CXL1_192.168.3.52;account;accept;;;inbound;FG;-1;-1;CN=CXL1_192.168.3.52,O=MyDomain_Server.checkpoint.com.s6t98x;5;18446744073709551615;1;;Network;Default;Default;Host Redirect;;;;;;;;; 47;13Jun2018;19:57:02;CXL1_192.168.3.52;control; ;;;inbound;Security Gateway/Management;-1;-1;CN=CXL1_192.168.3.52,O=MyDomain_Server.checkpoint.com.s6t98x;5;18446744073709551615;1;;Network;;;;;Contracts;Failed;1.0;;1;Could not reach "https://productcoverage.checkpoint.com/ProductCoverageService". Check DNS and Proxy configuration on the gateway.;2;Contracts may be out-of-date [Expert@MGMT:0]# |