Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

file (System Logging)

Syntax

Hierarchy Level

Description

Specify the file in which to log data. Starting in Junos OS Release 20.3R1, the change-log is a default option at [edit system syslog file name] hierarchy for SRX Series devices. As the default option, change-log records all the configuration changes. In Junos OS releases earlier than 20.2R1, you need to configure change-log.

Options

  • filename—Specify the name of the file in which to log data.

  • allow-duplicates—Do not suppress the repeated messages.

  • any—Specify all facilities information.

    • alert—Specify the conditions that should be corrected immediately.

    • critical—Specify the critical conditions.

    • emergency—Specify the conditions that cause security functions to stop.

    • error—Specify the general error conditions.

    • info—Specify the information about normal security operations.

    • none—Do not specify any messages.

    • notice—Specify the conditions that should be handled specifically.

    • warning—Specify the general warning conditions.

  • archive—Specify the archive file information.

    • archive-sites—Specify a list of destination URLs for the archived log files.

      • url—Specify the primary and failover URLs to receive archive files.

    • binary-data—Mark file such that it contains binary data.

    • no-binary-data—Do not mark the file such that it contains binary data.

    • files—Specify the number of files to be archived. Range: 1 through 1000 files.

    • size—Specify the size of files to be archived. Range: 65,536 through 1,073,741,824 bytes.

    • world-readable—Allow any user to read the log file.

    • no-world-readable—Do not allow any user to read the log file.

    • start-time—Specify the start time for file transmission. Enter the start time in the yyyy-mm-dd.hh:mm format.

    • transfer-interval—Specify the frequency at which to transfer the files to archive sites.

  • authorization—Specify the authorization system.

  • change-log—Specify the configuration change log.

  • conflict-log—Specify the configuration conflict log.

  • daemon—Specify the various system processes.

  • dfc—Specify the dynamic flow capture.

  • explicit-priority—Include the priority and facility in messages.

  • external—Specify the local external applications.

  • firewall—Specify the firewall filtering system.

  • ftp—Specify the FTP process.

  • interactive-commands—Specify the commands executed by the UI.

  • kernel—Specify the kernel information.

  • match—Specify the regular expression for lines to be logged.

  • ntp—Specify the NTP process.

  • pfe—Specify the Packet Forwarding Engine.

  • security—Specify the security-related information.

  • structured-data—Log the messages in structured log format.

    • brief—Omit English language text from the end of the logged message.

  • user—Specify the user processes.

    • info—Specify the informational messages.

Required Privilege Level

system—To view this statement in the configuration.

system-control—To add this statement to the configuration.

Release Information

Statement introduced before Junos OS Release 12.1X47.