Documentation
|
Support
Forcepoint Appliances Command Line Interface
>
Maintenance and support
> Log files
Log files
CLI Guide | Forcepoint Appliances | v8.5.x
show log lastline
Display the last
n
lines of the log file (limit 500).
show log lastline <app|email|proxy|network-agent|web|analytics-engine> --type <audit|system> -- line <integer>
Parameter
Description
type
(Required only for appliances log files) The log file type (audit or system).
line
The number of lines to display.
Usage guidelines
All products.
The type parameter is only used for appliance log files.
Examples
(view)# show log lastline email --line 3
Related commands
Command
Description
set filestore
Define a remote location to host backup and configuration files.
save log
Zip log files and save to a remote filestore.
show log realtime
Display data as it is appended to the log file.
show log realtime <app|email|proxy|network-agent|web|analytics-engine> [--filter <string>] --type <audit|system> [--timeout <integer>]
Parameter
Description
type
(Required only for appliances log files) The log file type (audit or system).
filter
(Optional) Literal string to match. Not a reqular expression.
timeout
(Optional) Amount of time to stream log in seconds.
Usage guidelines
All products.
The type parameter is only used for appliance log files.
Examples
(view)# show log realtime email --timeout 20
Related commands
Command
Description
set filestore
Define a remote location to host backup and configuration files.
save log
Zip log files and save to a remote filestore.
set log archive
Configure how and when log files are archived.
set log archive --type <system|audit|network-agent|email|analytics-engine|api|api_request|uwsgi>
--size <integer|string> --freq <weekly|monthly|yearly>
[--max-files <#>]
Parameter
Description
type
The type of archive. This parameter is required.
size
The size or freq parameter must be used.
The default unit of measurement is bytes. To instead use kilobytes or megabytes, append "k" or "m" to the size. For example:
(config)# set log archive --type audit --size 50m
freq
The size or freq parameter must be used.
Specifies a frequency interval (weekly, monthly, yearly).
max-files
(Optional) The maximum number of files to be stored.
Usage guidelines
All products.
When a log file reaches the specified maximum size (between 10 MB and 200 MB), or at the specified frequency interval, the file is archived, and a new log file is started.
The
type
parameter is required, and either the
freq
or the
size
parameter is also required
.
Examples
(config)# set log archive --type audit --size 30m
Related commands
Command
Description
set filestore
Define a remote location to host backup and configuration files.
save log
Zip log files and save to a remote filestore.
show log archive
Display log file archiving settings.
show log archive --type <system|audit|email|network-agent|api|api_request|uwsgi>
Parameter
Description
type
The log type whose settings will be shown.
Usage guidelines
All products.
Determine whether log files are being archived, and if so, what criteria are used to determine when older log data is archived and a new log file is started.
Examples
(view)# show log archive --type system
Related commands
Command
Description
set filestore
Define a remote location to host backup and configuration files.
save log
Zip log files and save to a remote filestore.
Forcepoint Appliances Command Line Interface
>
Maintenance and support
> Log files
Copyright 2020 Forcepoint. All rights reserved.