-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
libbeat 7.12.1 default logging logs excessive amount of data when failing to create index template #25540
Comments
Pinging @elastic/security-external-integrations (Team:Security-External Integrations) |
Thanks for reporting this @gpapakyriakopoulos! Could you please add more information regarding version you are using and how you run cc: @andrewkroh @adriansr |
Our ES cluster runs on version 7.12.1.
Our environment is:
The service is running as systemd default service with no other customization. |
This is a problem affecting all Beats since this logging is part of libbeat. I'd probably stop the template logging entirely. The template itself can be dumped using |
Pinging @elastic/agent (Team:Agent) |
Index templates in some beats can be very large (~1MB) and including the data in errors can use a lot of memory and also makes for very large log lines. If the error is recurring then this makes the effects worse. So this change removes the index template body from the error. Users that need to see the index template for debugging can use `<beatname> export template --es.version=1.2.3`. Fixes elastic#25540
* Don't include full ES index template in errors Index templates in some beats can be very large (~1MB) and including the data in errors can use a lot of memory and also makes for very large log lines. If the error is recurring then this makes the effects worse. So this change removes the index template body from the error. Users that need to see the index template for debugging can use `<beatname> export template --es.version=1.2.3`. Fixes #25540 * Update expected log messages in tests
* Don't include full ES index template in errors Index templates in some beats can be very large (~1MB) and including the data in errors can use a lot of memory and also makes for very large log lines. If the error is recurring then this makes the effects worse. So this change removes the index template body from the error. Users that need to see the index template for debugging can use `<beatname> export template --es.version=1.2.3`. Fixes #25540 * Update expected log messages in tests (cherry picked from commit 766e303) # Conflicts: # libbeat/template/load.go
* Don't include full ES index template in errors Index templates in some beats can be very large (~1MB) and including the data in errors can use a lot of memory and also makes for very large log lines. If the error is recurring then this makes the effects worse. So this change removes the index template body from the error. Users that need to see the index template for debugging can use `<beatname> export template --es.version=1.2.3`. Fixes elastic#25540 * Update expected log messages in tests
…#26318) * Don't include full ES index template in errors (#25743) Index templates in some beats can be very large (~1MB) and including the data in errors can use a lot of memory and also makes for very large log lines. If the error is recurring then this makes the effects worse. So this change removes the index template body from the error. Users that need to see the index template for debugging can use `<beatname> export template --es.version=1.2.3`. Fixes #25540 * Update expected log messages in tests (cherry picked from commit 766e303) Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
As the title mentions, auditbeat on the default logging level (INFO based on official documentation) logs an excessive amount of data on syslog when failing to create an index template (ex. Due to insufficient access privileges).
After logging the initial exception error, it proceeds to also log the full index template as part of the exception error log, which usually amounts to several thousand lines of JSON. The log output is repeated continuously while the error is present, resulting in quickly filling up massive amounts of disk space.
An example (truncated) error log that fits the above description is as follows :
The text was updated successfully, but these errors were encountered: