-
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: Mixed up fileset.module #4761
Comments
Proof reading the code didn't so far reveal conditions where this could happen. I started 1k runs like this:
I'm monitoring the FB output and the ES index. Lets see if it happens on my mac. If not, I'm going to try on Linux as well. |
Consistent reproduction with this
Only changes to apache2 and nginx manifest.yml were the data paths. Only change to filebeat.yml was data path set to non-existent location, and username and password enabled. Happy to screen share. |
Aha! I could also reproduce it now. Thanks! |
Fixes elastic#4761. Due to combining pointer and reference passing we ended up with passing the same module pointer to multiple filesets. The pointer was correct during initialization, but wrong during run time. Also added an Info with the enabled modules / filesets.
Got a fix in #4772. This was kind of embarrassing 😊 |
* Fix mixed up modules configuration Fixes #4761. Due to combining pointer and reference passing we ended up with passing the same module pointer to multiple filesets. The pointer was correct during initialization, but wrong during run time. Also added an Info with the enabled modules / filesets.
* Fix mixed up modules configuration Fixes elastic#4761. Due to combining pointer and reference passing we ended up with passing the same module pointer to multiple filesets. The pointer was correct during initialization, but wrong during run time. Also added an Info with the enabled modules / filesets. (cherry picked from commit 4ce5360)
* Fix mixed up modules configuration Fixes elastic#4761. Due to combining pointer and reference passing we ended up with passing the same module pointer to multiple filesets. The pointer was correct during initialization, but wrong during run time. Also added an Info with the enabled modules / filesets. (cherry picked from commit 4ce5360)
* Fix mixed up modules configuration Fixes #4761. Due to combining pointer and reference passing we ended up with passing the same module pointer to multiple filesets. The pointer was correct during initialization, but wrong during run time. Also added an Info with the enabled modules / filesets. (cherry picked from commit 4ce5360)
* Fix mixed up modules configuration Fixes #4761. Due to combining pointer and reference passing we ended up with passing the same module pointer to multiple filesets. The pointer was correct during initialization, but wrong during run time. Also added an Info with the enabled modules / filesets. (cherry picked from commit 4ce5360)
* Fix mixed up modules configuration Fixes elastic#4761. Due to combining pointer and reference passing we ended up with passing the same module pointer to multiple filesets. The pointer was correct during initialization, but wrong during run time. Also added an Info with the enabled modules / filesets. (cherry picked from commit 644ced8)
Version:
Filebeat 5.6.0-SNAPSHOT
fromJul 24 13:17
Operating System:
Linux ip-10-0-1-124 4.4.35-33.55.amzn1.x86_64 #1 SMP Tue Dec 6 20:30:04 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
2 node cluster.
Steps to Reproduce:
I'd tell you if I knew ;)
Whilst trying several different commands using filebeat modules, I noticed that apache2 data had been uploaded with an nginx label.
Commands used were probably a combination of:
./filebeat -v -e -modules=apache2,nginx
./filebeat -v -e -modules=apache2
./filebeat -v -e -modules=nginx
Ingest pipelines were reviewed and appeared to be ok.
Will wipe down kit, and attempt to replicate.
The text was updated successfully, but these errors were encountered: