set system syslog local-file


The set system syslog local-file command sets the local save location of the syslog file.


Command Syntax

set system syslog local-file <location>


Parameter

Parameter

Description

local-file <location>

Specifies the local save location of the syslog. The value could be disk or ram.

  •   disk: saves the syslog to disk, the path is /var/log.
  •   ram: saves the syslog to RAM, the path is /tmp/log.

By default, the syslog is kept in RAM.


Usage Guidelines

By default, the syslog file stays in RAM. When the system is powered off and restarted, the syslog file in RAM will be cleared. You can configure the syslog to be saved to disk. When the system is powered off and restarted, the syslog saved to disk will still exist.


Example

•  Set the local save location of the syslog file to disk.

admin@XorPlus# set system syslog local-file disk
admin@XorPlus# commit

Copyright © 2024 Pica8 Inc. All Rights Reserved.