-
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
Convert Filebeat kafka.* to ECS #9297
Conversation
cafba24
to
f30da0d
Compare
@@ -6,18 +6,18 @@ | |||
"field": "message", | |||
"trace_match": true, | |||
"patterns": [ | |||
"(?m)%{TIMESTAMP_ISO8601:kafka.log.timestamp}. %{LOGLEVEL:kafka.log.level} +%{JAVALOGMESSAGE:kafka.log.message} \\(%{JAVACLASS:kafka.log.class}\\)$[ \\n]*(?'kafka.log.trace.full'.*)" | |||
"(?m)%{TIMESTAMP_ISO8601:kafka.log.timestamp}. %{LOGLEVEL:log.level} +%{JAVALOGMESSAGE:message} \\(%{JAVACLASS:kafka.log.class}\\)$[ \\n]*(?'kafka.log.trace.full'.*)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like one day we should have something related to Java class.
@felixbarny Is there a standardised way Java APM agent is storing this info?
@@ -6,9 +6,8 @@ | |||
"input.type": "log", | |||
"kafka.log.class": "state.change.logger", | |||
"kafka.log.component": "Broker id=30", | |||
"kafka.log.level": "TRACE", | |||
"kafka.log.message": "Cached leader info PartitionState(controllerEpoch=25, leader=-1, leaderEpoch=15, isr=[10], zkVersion=15, replicas=[10], offlineReplicas=[10]) for partition __consumer_offsets-16 in response to UpdateMetadata request sent by controller 20 epoch 25 with correlation id 8", | |||
"log.level": "TRACE", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a log level we haven't really used yet. No change needed.
baf3209
to
0b77277
Compare
- kafka.log.level => log.level - kafka.log.message => message
The pipeline ends with remove `remove field kafka.log.timestamp`.
Caveats
message
, and cleaned up messagein kafka.log.message. Keeping original message will be addressed elsewhere,
and this PR now replaces
message
with the cleaned up message.Renames
TODO
Noticed
kafka.log.trace.full