-
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
[Filebeat] Elasticsearch module - regular expression has redundant nested repeat operator #17402
Comments
This looks really similar to #15840. |
@ycombinator Do you have any insight on this? |
Hmm, I thought we fixed this in #15900, including the ingest grok pattern for the |
We're seeing this issue in other modules too. Just received a contribution to fix mysql module: #17156 I am running a test to see how many modules cause these errors in ES. I think we should communicate this to the Elasticsearch (ingest?) team so they can also check where is that msg being printed, seems a library written straight to stderr, while this msg should go to debug. |
The only module that produced this warning during system-tests is I'll submit a patch. |
I think we are experiencing this issue for some time now. This problem is filling up our disks as it is logging huge amount of stuff like this to /var/log/messages:
@adriansr We tried stopping Filebeat, but that didn't help. Is there any workaround we can apply to stop this from happening or do we have to wait for 7.6.3? Case number is 00510847 |
@willemdh that particular warning is fixed by #17156. As it might take some time until the fix is released, I think an easy workaround is to replace your current ingest pipeline ( |
@adriansr Thanks for the suggestion, will try that tomorrow! |
@andrewkroh It looks like you're using an elasticsearch/gc pipeline without the fix in #15900. The regexp in the error message has one extra What's the output of:
it shouldn't have a star at the end: - "JVM9HEADER" : "\\[%{TIMESTAMP_ISO8601: <...> %{SPACE}*\\]",
+ "JVM9HEADER" : "\\[%{TIMESTAMP_ISO8601: <...> %{SPACE}\\]", |
Turns out Elasticsearch had the old pipeline installed. I guess an older 8.0.0 has been used in this cluster in the past, and the pipeline is not updated if the version number is the same. I updated it, problem should be gone. Another cause for this message could be having pipelines for older versions installed. This will cause the error to appear every time an Elasticsearch instance starts. |
Correctly, after updating the mysql slowlog pipeline we were still seeing these regex logs. Only after deleting all old slowlog mysql pipelines, the issues seems to be resolved. |
Thanks @adriansr for diving into this issue! |
I wanted to let everyone know that I upgraded to 7.7.0 and still was having this issue - "regular expression has redundant nested repeat operator ...". As adriansr pointed out, it was because I had pipelines (not the same ones as the other users above) from older versions that were left installed on the cluster. You can check to see if you have older pipelines in your config by running this command: I was able to delete these by running the command: Next, I stop and started the service (systemctl stop/start elasticsearch in my case). Next, I reran the command to list the pipelines ES was using (see above) and I now only had version 7.7.0 pipelines. To determine if this corrected the issue, I ran the following command to show me the elasticsearch log after I restarted the service: journalctl -u elasticsearch --no-pager And all the entries for the "redundant regular expression..." were no longer there. Problem solved. |
Elasticsearch is logging warnings as a result of the Elasticsearch Filebeat module pipeline.
Versions:
Here's the full log output from Elasticsearch (as collected by Filebeat (super meta)).
The text was updated successfully, but these errors were encountered: