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.
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.
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:
- Log in to FusionInsight Manager.
- Choose Cluster > Services > Guardian. Click Configurations then All Configurations.
- On the menu bar on the left, select the log menu of the target role.
- Select a desired log level.
- 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.
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 |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot