Logging
The collector logs are stored in the file wscollector_debug.log in the /home/dcxuser/Collector_Release/logs/ location.
About this task
Logs-rollover
The existing log file size is set to 50 MB and the number of days for logs retention is 20 days. You can modify these values as per your requirement. If the size of the log file reaches the set value (for example 50 MB), it is moved to the websocketCollector-current_date-number.log.gz file.
To change the size of the log file, days of log file retention, and log level, complete the following steps:
Procedure
- Stop the collector service.
-
Using an editor, open the collector.sh file. You will see
the following parameters:
LOG_LEVEL LOG_MAX_SIZE LOG_MAX_HISTORY -
If required, modify the values for the earlier mentioned parameters.
Note: Recommended values for the parameters are as follows:
- LOG_MAX_SIZE: 10 MB | 100 MB
- LOG_LEVEL: INFO | DEBUG
- LOG_MAX_HISTORY: 5 | 10
- Save the file and restart the service.
- Restart the Collector service.