Control Disk Usage by Agent Logs
The Sysdig agent generates log entries in
/opt/draios/logs/draios.log. It periodically performs rotation of its own logs.
You can use the following configuration to control the space taken up by agent logs:
max_size: Sets a limit to the size of a single agent log file, in megabytes. When the log file reaches this size, a new log file will be created. The old log will be renamed with a timestamp. The default size is 10 megabytes.
rotateconfiguration determines how many old log files are kept on the disk. The default is 10 log files.
When the log file reaches this size, a new log file,
draios.logwill be created, and the old log will be renamed with a timestamp.
log: max_size: 10 rotate: 10
For example, if the current log file reaches the size limit of 10 megabytes and the number of log files reaches the limit of 10, the oldest will be removed. The last log file will be renamed with a timestamp and added to the list of old log files.
Increasing these values can provide more logs for troubleshooting at the expense of more space.
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.