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

Logfile config #8

Merged
merged 2 commits into from
Jan 29, 2024
Merged

Logfile config #8

merged 2 commits into from
Jan 29, 2024

Conversation

Hsn723
Copy link
Owner

@Hsn723 Hsn723 commented Jan 29, 2024

In some use cases, it may be useful to change the hardcoded tail.Config settings. For instance, when running postfix_exporter as a sidecar container the log file may not yet be created by the main postfix container upon starting postfix_exporter and as a result we needed to have MustExist set to false. It is also useful to keep logs from the tail module for debugging purposes.

This PR introduces the ability to configure some of the tail.Config settings by exposing them as command line flag to fileLogSourceFactory.

@Hsn723 Hsn723 merged commit 1bdefd5 into master Jan 29, 2024
7 checks passed
@Hsn723 Hsn723 deleted the logfile-config branch August 28, 2024 06:52
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

Successfully merging this pull request may close these issues.

1 participant