-
Notifications
You must be signed in to change notification settings - Fork 9
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
Document how one can disable/enable ELK output #106
Comments
I don't think there is a user-facing setting for this atm |
For what it's worth, it looks like there used to be, see: enochecker/src/enochecker/enochecker.py Line 178 in d620593
It could make sense to bring it back. |
But it would make more sense to have that as a |
Maybe an env var to enable elk logging in docker? |
we could also enable/disable it depending on the |
Or maybe that is still too specific, generally I would assume we want to disable ELK logging when running it via command line (regardless of the run mode) and enable it otherwise, which would be when run through gunicorn/uwsgi/whatever |
After giving this some more thought, should we switch this discussion to enospec and decide on a dedicated environment variable or something similar? This way we can have CI disable elk output for all checkers. |
While developing, you may still use the HTTP version of the checker in a docker, but you still want to disable JSON output, right? |
Yes, but I would prefer default settings that could lead to people seeing JSON-formatted docs during development instead of having no logs in ELK in production due to a missing environment variable |
Would you really want to specify another logging format then? Because the ELK output is well defined and could also be parsed by the CI. Introducing another spec for a different log format shared by all checkers would just make it more complicated, without any significant gain imho. |
We don't have to specify the other format, specifying when and when not it does emit ELK-ready output should suffice. |
If I understand @Trolldemorted correctly, he wants to specify how to change the logs to human-readable format, so that it's the same for all checkers. |
I was referring this. If the CI disables ELK output, it can not automatically scan for errors... |
The CI should not need to parse log output at all, all relevant information should be in the HTTP responses. This is more about humans being able to manually read through the logs in case something fails during CI runs |
I thought you wanted to parse the output to filter out the messages from the erroring run and show them in a condensed form to the user. |
for test setups w/o an elk
The text was updated successfully, but these errors were encountered: