clearlog

Clears the audit log and cluster log files.

Read syntax diagramSkip visual syntax diagram
>>-clearlog--+--------+--+---------+-- -log--+-audit---+-------><
             +- -?----+  '- -quiet-'         '-cluster-'
             +- -h----+
             '- -help-'

Parameters

–? | –h | –help
Displays a detailed description of this command, including syntax, parameter descriptions, and examples. If you specify a help option, all other command options are ignored.
–quiet
Turns off confirmation messages for this command.
–log
Specifies the log file to clear.
audit
Clears all entries in the audit log, which maintains a history of messages created by the administrative server.
cluster
Clears all entries in the cluster log, which maintains a history of all messages issued by any administrator for all metadata servers in the cluster.

Prerequisites

You must have Administrator privileges to use the command.

Description

Note:
  1. If you run this command from an engine hosting a subordinate metadata server, the audit log and cluster log on only the local engine are cleared. If you run this command from the engine hosting the master metadata server, the audit logs and cluster logs on all engines are cleared.
  2. Because the event log is a subset of the cluster log, the event log is also cleared when you clear the cluster log.

Example

Clear the cluster log The following example clears the cluster log entries.
sfscli> clearlog -log cluster
Are you sure you want to remove all entries in the cluster log? [y/n] Y
Cluster log cleared.

Parent topic: Administrative commands

Related reference
catlog
collectdiag

Terms of use | Feedback
(C) Copyright IBM Corporation 2003, 2004. All Rights Reserved.