Hi,
Does OneAgent logs rotate automatically with any retention period or do we need to put log rotation?
Regards
Muthu
Solved! Go to Solution.
Hi,
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.
Thanks, Pawel.
Could you please let me know on which configuration file I can see the default values defined for one agent?
Regards
Muthu
Hi,
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.
Hi,
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?
Regards
Muthu
Hi,
The "5 files, 10MB each" is not something that is user-configurable at this time.
Regards,
Pawel
Thanks, Pawel.
Pawel,
What is the default rotation period.?
Hi Suresh,
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.
Thanks Pawel,
What is the limit on size and number of files
Hi Suresh,
We usually keep 5 files per agent, each of which is at most 10 MB in size.
Thanks for the information