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: allow tail-file to be specified in configuration file #9

Open
dnmvisser opened this issue Feb 13, 2021 · 1 comment

Comments

@dnmvisser
Copy link

Currently the only way to tell swatchdog which file(s) to tail is using the --tail-file command line argument.
This means that when used in combination with startup scripts, those have to be hardcoded.
I would be nice to have swatchdog accept a single argument of a configuration file, where all of this is configured.
Perhaps a new item tailfile or something like that:

tailfile  /var/log/mail.log
watchfor  /^blahblah.*blah$/
[email protected], subject="Blah found"

tailfile /var/log/auth.log
watchfor /Invalid user/
mail [email protected], subject="Invalid user sign-in attempt"

I'm sure there would be more to it than this...

@cpina
Copy link

cpina commented Jul 20, 2022

I'm also missing this...

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