-
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
json log using multiline exception #32971
Comments
This issue doesn't have a |
Hi @Iatbzh! Please format your issue first using |
Sorry, I need to get a new code? |
type: kubernetes host.name |
My problem is: when I use auto discovery to collect business container logs, the json log that takes up two lines cannot be collected |
As I said, please reformat your post using code tags. |
Hello @Iatbzh, in order for us to follow up this issue we need it to be clearer than what it is now. To help us debug this, please format your posts using the appropriate formatting; here is a link to the GitHub docs about formatting code. You may want to refer at the documentation for handling multiline in filebeat and explain what is the bug here. Thank you! |
Thank you very much for creating this issue. However, we would kindly like to ask you to post all questions and issues on the Discuss forum first. In addition to awesome, knowledgeable community contributors, core Beats developers are on the forums every single day to help you out as well. So, your questions will reach a wider audience there, and if we confirm that there is a bug, then you can reopen this issue with the new information or open a new one. |
Hi! We're labeling this issue as |
log:
{"message":"","thread":"cccccccf1-d147-ccc-cccccd-0cccccccccccc9","pageSysId":"64","href":"http://tset/test?from=%2test","pageSpDomain":"","@timestamp":"2022-09-03T15:29:54.272Z","time":"2022-09-03 15:29:54.271","level":"INFO","container":{"image":{"name":"test:test"},"id":"cccccccccccccccccccccccccccccccctteateststset"}}
filebeat config:
`filebeat.autodiscover:
providers:
#scope: cluster
node: ${NODE_NAME}
#unique: true
templates:
kubernetes.namespace: "sup"
config:
paths:
multiline:
type: pattern
pattern: '^\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2}.\d{3}\s'
negate: true
match: after
max_lines: 20000
processors:
drop_fields:
fields:
ignore_missing: true
output.kafka:
hosts: [test1:9092,test2:9092,test3:9092]
topic: test
partition.round_robin:
reachable_only: false
required_acks: 1
compression: gzip
max_message_bytes: 4194304`
Result: This log will not be collected
The text was updated successfully, but these errors were encountered: