Viewing a Log File (asg log)
Check Point Maestro R80.20SP Administration Guide | 171
Viewing a Log File (asg log)
Description
Use the
asg log
command to see the contents of a specified log file.
Syntax
# asg log [-b <
SGM_IDs
>] --file <
log_name
> [--from "<
timestamp
>"] [--
to "<
timestamp
>"] [--tail <
n
>] [--filter <
string
>]
Parameters
Parameter
Description
-b <
SGM_IDs
>
Applies to Security Appliances as specified by
<
SGM_IDs
>
.
<
SGM_IDs
>
can be:
n
No
<
SGM_IDs
> specified, or
all
- Applies to all Security
Appliances and Chassis
n
One Security Appliance (for example,
1_1
)
n
A comma-separated list of Security Appliances (for example,
1_
1,1_4
)
n
A range of Security Appliances (for example,
1_1-1_4
)
n
One Chassis (
chassis1
, or
chassis2
)
n
The active Chassis (
chassis_active
)
<
log_name
>
Enter the log file:
n
audit
- Shows the audit logs in
/var/log/
For example:
/var/log/asgaudit.log.1
n
ports
- Shows the ports logs in
/var/log/
For example:
/var/log/ports
n
dist_mode
- Shows the logs for Distribution Mode activity.
--from
"<
timestamp
>"
Shows only the log from a given timestamp and above.
You must use the timestamp as it appears in the log file.
--to "<
timestamp
>"
Shows only the log until the given timestamp.
You must use the timestamp as it appears in the log file.
--tail <
n>
Show only the last
n
lines of the log file for each Security Appliance.
For example,
-tail 3
shows only the last three lines of the specified log
file.
Default = 10 lines.
--filter <
string
>
Word or phrase use as a filter.
For example:
--filter debug