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

Module Request: system_settings_logging #52

Closed
rekup opened this issue Mar 21, 2024 · 0 comments · Fixed by #61
Closed

Module Request: system_settings_logging #52

rekup opened this issue Mar 21, 2024 · 0 comments · Fixed by #61
Labels
feature This Issue/PR relates to a feature request

Comments

@rekup
Copy link
Contributor

rekup commented Mar 21, 2024

Module Description

This module can be used to configure the settings available in the ui under System -> Settings -> Logging

image

Minimum Viable Product (MVP)

module: system_settings_logging
short_description: Configure logging settings
description:
  - Module to configure system logging
options:
  preserve_logs:
    description: "Number of logs to preserve. By default 31 logs are preserved. When no max filesize is offered or the logs are smaller than the the size requested, this equals the number of days."
    type: int
    required: false
  max_log_filesize_mb:
    description: "Maximum filesize per log file, when set and a logfile exceeds the amount specified, it will be rotated."
    type: int
    required: false

Examples

---
- name: Set the number of logs to preserve to 10
  puzzle.opnsense.system_settings_logging:
    preserve_logs: 10
---
- name: Set max log filesize to 5MB
  puzzle.opnsense.system_settings_logging:
    max_log_filesize_mb: 5
@rekup rekup added the feature This Issue/PR relates to a feature request label Mar 21, 2024
@rekup rekup closed this as completed in #61 Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature This Issue/PR relates to a feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant