Configuring Audit Log Options in the Evaluated Configuration
The following section describes how to configure audit log options in the evaluated configuration.
Configuring Audit Log Options for MX80, MX240, MX480, and MX960 Devices
To configure audit log options for MX80, MX240, MX480, and MX960 devices:
- Specify the number of files to be archived in the system
logging facility.[edit system syslog]root@host#set archive files 2
- Specify the file in which to log data.[edit system syslog]root@host#set file syslog any any
- Specify the size of files to be archived.[edit system syslog]root@host#set file syslog archive size 10000000
- Specify the priority and facility in messages for the
system logging facility.[edit system syslog]root@host#set file syslog explicit-priority
- Log system messages in a structured format.[edit system syslog]root@host#set file syslog structured-data
To configure MACsec related syslogs for MX80, MX240, MX480, and MX960 Devices:
- Define interface on which configurations are applied:[edit security]root@host#set macsec interfaces ge-0/0/1 traceoptions file mka_xe002 size size 1groot@host#set macsec interfaces ge-0/0/1 traceoptions flag all
- Define tracing operations at the MACsec level. [edit security]root@host#set macsec traceoptions file MACsec.logroot@host#set macsec traceoptions file size 4000000000root@host#set macsec traceoptions flag all