Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Support log file rotation #471

Closed
iamazeem opened this issue Jun 11, 2024 · 2 comments
Closed

[Feature Request] Support log file rotation #471

iamazeem opened this issue Jun 11, 2024 · 2 comments

Comments

@iamazeem
Copy link

General information

Operating system: Ubuntu 20.04
Perl version: 5.30.0

OCS Inventory information

Unix agent version: 2.9.0

Problem's description

For the long running agent, the log file (configured with --logfile CLI flag) keeps on increasing up to GiBs.
Currently, there's no flag or configuration option to rotate the log file up to a size threshold.
Having something like that would greatly help and avoid the need to resort to manual external solutions.

@fbomj
Copy link
Contributor

fbomj commented Jul 10, 2024

Hi,

This is always exsiting in github version and package version. For github version see contrib/cron directory. In package ocsinventory-agent.logrotate file is written in /etc/logrotate.d directory.

Regards

@fbomj fbomj closed this as completed Jul 10, 2024
@iamazeem
Copy link
Author

Hi @fbomj,

Thank you for pointing that out!
Could you please confirm whether a similar feature is available for Windows and MacOS too?

Regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants