-
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 Kubernetes Hints - Incorrect Fileset Being Used #12718
Labels
Comments
I'm experiencing the same issue with filebeat 7.3.0 and default nginx module. The filesets are assigned at random, sometimes stdout out goes to access or error, same with stderr. The only way for me to get any consistency is to set both filesets to access. Filebeat: 7.3.0 |
jsoriano
pushed a commit
to jsoriano/beats
that referenced
this issue
Aug 30, 2019
…elastic#13296) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes elastic#12718 (cherry picked from commit 658772a)
jsoriano
pushed a commit
to jsoriano/beats
that referenced
this issue
Aug 30, 2019
…elastic#13296) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes elastic#12718 (cherry picked from commit 658772a)
jsoriano
pushed a commit
to jsoriano/beats
that referenced
this issue
Aug 30, 2019
…elastic#13296) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes elastic#12718 (cherry picked from commit 658772a)
jsoriano
pushed a commit
to jsoriano/beats
that referenced
this issue
Aug 30, 2019
…elastic#13296) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes elastic#12718 (cherry picked from commit 658772a)
jsoriano
pushed a commit
to jsoriano/beats
that referenced
this issue
Aug 30, 2019
…elastic#13296) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes elastic#12718 (cherry picked from commit 658772a)
jsoriano
added a commit
that referenced
this issue
Aug 30, 2019
…#13296) (#13447) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes #12718 (cherry picked from commit 658772a) Co-authored-by: Kent Wang <pragkent@gmail.com>
jsoriano
added a commit
that referenced
this issue
Aug 30, 2019
…#13296) (#13449) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes #12718 (cherry picked from commit 658772a) Co-authored-by: Kent Wang <pragkent@gmail.com>
jsoriano
added a commit
that referenced
this issue
Aug 30, 2019
…#13296) (#13451) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes #12718 (cherry picked from commit 658772a) Co-authored-by: Kent Wang <pragkent@gmail.com>
leweafan
pushed a commit
to leweafan/beats
that referenced
this issue
Apr 28, 2023
…elastic#13296) (elastic#13451) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes elastic#12718 (cherry picked from commit 8c34c2b) Co-authored-by: Kent Wang <pragkent@gmail.com>
leweafan
pushed a commit
to leweafan/beats
that referenced
this issue
Apr 28, 2023
…elastic#13296) (elastic#13447) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes elastic#12718 (cherry picked from commit 8c34c2b) Co-authored-by: Kent Wang <pragkent@gmail.com>
leweafan
pushed a commit
to leweafan/beats
that referenced
this issue
Apr 28, 2023
…elastic#13296) (elastic#13449) Currently, autodiscover hint assumes that input type is docker. Since docker input is deprecated in 7.2.0, container input should be supported. So we need to set `stream` or `containers.stream` based on input type. Closes elastic#12718 (cherry picked from commit 8c34c2b) Co-authored-by: Kent Wang <pragkent@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
I originally posted this here https://discuss.elastic.co/t/filebeat-hints-using-incorrect-fileset-dataset/187909 but I'm reposting here as I've tested again on a fully 7.x setup with a simpler module configuration with the same outcome, so I do believe it to be a bug.
I have a pod with the below annotations:
I then have a filebeat module defined that looks like the below (Carried over from 6.x):
In that pod I am running
echo 'STDOUT' >> /proc/1/fd/1
in a loop. I can see the logs are correctly making it through the docker logging driver by cat'ing the log file on the host:I'd expect based on the annotations & module definition that any
stdout
logs would use theaccess
fileset (The ingest pipeline for this adds a field with valueI definitely went through the stdout pipeline
), andstderr
logs would use theerror
fileset (The ingest pipeline for this adds a field with valueI definitely went through the stderr pipeline
). This setup is working as expected on Filebeat 6.6.1, Elasticsearch 6.8.0.However, in practice, I see
stdout
messages picking between the two filesets seemingly at random:Our Filebeat config is as below:
I can't see anything in there that would cause this. The only thing specific to the
testing
module is to override the index it writes to (Which works, the messages are sent toingress-nginx-*
)Attached is the
testing
module: module.tar.gzFilebeat version: 7.2.0
Elasticsearch version: 7.1.0
Kubernetes version: v1.13.6-gke.13
The text was updated successfully, but these errors were encountered: