Updated on 2024-12-13 GMT+08:00

Guardian Log Overview

Log Description

Log path: /var/log/Bigdata/guardian/token-server

Log archive rule: The automatic compression and archive function is enabled for Guardian run logs. When the total size of all log files exceeds 50 MB (configurable), the log files are automatically compressed into a package named in the format of token-server.log.[ID]. A maximum of 20 latest compressed files are retained. The number of compressed files and compression threshold can be configured.

Table 1 Guardian log list

Log Type

Log File Name

Description

Searchable on Manager

Run log

token-server.log

Guardian run log

Yes

startDetail.log

Guardian service prestart log

Yes

stopDetail.log

Guardian service stop log

Yes

gc.log

Guardian service GC log

No

Log Levels

Table Table 2 describes the log levels provided by Guardian.

The log levels are ERROR, WARN, INFO, and DEBUG in descending order of priority. Only logs whose levels are higher than or equal to the specified level are recorded. The higher the log level specified, the fewer the logs are recorded.

Table 2 Log levels

Level

Description

ERROR

Logs of this level record error information about system running

WARN

Logs of this level record exception information about the current event processing

INFO

Logs of this level record normal running status information about the system and events

DEBUG

Logs of this level record the system information and system debugging information

To modify log levels, perform the following operations:

  1. Log in to FusionInsight Manager.
  2. Choose Cluster > Services > Guardian. Click Configurations then All Configurations.
  3. On the menu bar on the left, select the log menu of the target role.
  4. Select a desired log level.
  5. Click Save then OK.

    The configurations take effect immediately without the need to restart the service.

Log Format

Table 3 describes the Guardian log format.

Table 3 Log format

Log Type

Format

Example

Run log

<yyyy-MM-dd HH:mm:ss,SSS>|<Log level>|<Name of the thread that generates the log>|<Location where the log event occurs>|< Location of the log event >|<Message in the log>

2024-05-23 09:54:11,696 | INFO | pool-12-thread-1-EventThread:53211544 | mrs.guardian.shaded.org.apache.curator.framework.state.ConnectionStateManager: | ConnectionStateManager.java:252 |

State change: CONNECTED