Does OneAgent logs rotate automatically with any retention period or do we need to put log rotation?
Solved! Go to Solution.
OneAgent rotates logs automatically, plus there are rules for removing older logs so that a disk space is not taken needlessly.
In extreme circumstances, when free space becomes less than configured and an alert will be presented for the host, OneAgent will perform full cleanup. That means almost all its logs will be removed. Only installation logs remain plus the one log, which explains why the purge happend.
Could you please let me know on which configuration file I can see the default values defined for one agent?
Could you specify what default values you are referring to?
We usually keep 5 files, which are at most 10 MB in size.
"Low disk space" threshold, when logs will be purged, can be configured through the UI for each host.
Click on host, click on edit, click on "Anomaly detection" and you can set thresholds for different events including low disk space.
Sorry for the delayed response. As you are saying "We usually keep 5 files, which are at most 10 MB in size". Where this is defined?
The "5 files, 10MB each" is not something that is user-configurable at this time.
What is the default rotation period.?
By "period", you mean time when logs are rotated?
If yes, OneAgent does not have time-based rotation of logs. Rotation is based on size and number of log files.
What is the limit on size and number of files
We usually keep 5 files per agent, each of which is at most 10 MB in size.
Thanks for the information