28 Jun 2018 10:35 AM
Hi,
Does OneAgent logs rotate automatically with any retention period or do we need to put log rotation?
Regards
Muthu
Solved! Go to Solution.
19 Jul 2018 10:46 AM
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.
19 Jul 2018 12:15 PM
Thanks, Pawel.
Could you please let me know on which configuration file I can see the default values defined for one agent?
Regards
Muthu
19 Jul 2018 01:16 PM
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.
01 Aug 2018 01:43 PM
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
01 Aug 2018 02:06 PM
Hi,
The "5 files, 10MB each" is not something that is user-configurable at this time.
Regards,
Pawel
01 Aug 2018 02:32 PM
Thanks, Pawel.
03 Oct 2018 12:21 PM
Pawel,
What is the default rotation period.?
08 Oct 2018 09:13 AM
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.
08 Oct 2018 09:44 AM
Thanks Pawel,
What is the limit on size and number of files
08 Oct 2018 09:53 AM
Hi Suresh,
We usually keep 5 files per agent, each of which is at most 10 MB in size.
08 Oct 2018 10:57 AM
Thanks for the information