Navigation Menu

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

[dev.icinga.com #13361] Rotate Icinga log files on Windows #4815

Closed
icinga-migration opened this issue Nov 30, 2016 · 8 comments
Closed

[dev.icinga.com #13361] Rotate Icinga log files on Windows #4815

icinga-migration opened this issue Nov 30, 2016 · 8 comments
Assignees
Labels
area/windows Windows agent and plugins enhancement New feature or request
Projects

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/13361

Created by gbeutner on 2016-11-30 09:23:19 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-11-30 09:23:43 +00:00 (in Redmine)

Backport?: Not yet backported
Include in Changelog: 1

@icinga-migration
Copy link
Author

Updated by gbeutner on 2016-11-30 09:23:43 +00:00

Requested by Emanuel Quass.

@icinga-migration icinga-migration added enhancement New feature or request libbase labels Jan 17, 2017
@dnsmichi dnsmichi added the area/windows Windows agent and plugins label Feb 7, 2017
@Icinga Icinga deleted a comment from MaBauMeBad Oct 26, 2017
@dnsmichi dnsmichi added help wanted Extra attention is needed wishlist needs-sponsoring Not low on priority but also not scheduled soon without any incentive and removed help wanted Extra attention is needed wishlist labels Nov 7, 2017
@dnsmichi
Copy link
Contributor

  • rotation
  • file size limit

Maybe inspired by https://github.com/gabime/spdlog

@dnsmichi dnsmichi added this to Low Priority in icinga2 Nov 15, 2019
@Al2Klimov Al2Klimov removed the needs-sponsoring Not low on priority but also not scheduled soon without any incentive label May 15, 2020
@Al2Klimov Al2Klimov self-assigned this May 15, 2020
Al2Klimov added a commit that referenced this issue May 15, 2020
Al2Klimov added a commit that referenced this issue May 15, 2020
@carraroj
Copy link

ref/NC/722507

@julianbrost
Copy link
Contributor

Would logging to Windows Event Log be an alternative to rolling our own log rotation? (see #8710)

@Al2Klimov
Copy link
Member

I consider "Prefer feature X or Y?" another construction area than "Does feature X work as expected?".

@phil-or
Copy link

phil-or commented Nov 2, 2022

Any news on this issue?
We still disabled logging, otherwise the disk space would fill up.

@julianbrost
Copy link
Contributor

Icinga 2.13 started logging to the Windows Event Log by default which handles expiring old messages automatically.

@Al2Klimov
Copy link
Member

Windows Event Log

Icinga 2.13 now supports logging to the Windows Event Log. Icinga will now also log messages from the early startup phase to the Windows Event Log. These were previously missing from the log file and you could only see them by manually starting Icinga in the foreground.

This feature is now enabled and replaces the existing mainlog feature logging to a file. When upgrading, the installer will enable the windowseventlog feature and disable the mainlog feature.

https://icinga.com/docs/icinga-2/latest/doc/16-upgrading-icinga-2/

No mainlog – no mainlog rotation needed.

@Al2Klimov Al2Klimov closed this as not planned Won't fix, can't repro, duplicate, stale May 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/windows Windows agent and plugins enhancement New feature or request
Projects
icinga2
  
Low Priority
Development

Successfully merging a pull request may close this issue.

7 participants