-
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
Ingest structured ES slow logs #10447
Ingest structured ES slow logs #10447
Conversation
Pinging @elastic/stack-monitoring |
1b9b1a3
to
35abb5f
Compare
filebeat/module/elasticsearch/slowlog/test/auditlog_index_indexing_slowlog.log-expected.json
Show resolved
Hide resolved
Looking good so far! |
b8f6196
to
874a9cf
Compare
} | ||
}, | ||
{ | ||
"dot_expander": { |
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.
Kind of odd that we need 2 steps here, but well.
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.
Agreed. This will help: elastic/elasticsearch#36950.
@@ -6,7 +6,7 @@ paths: | |||
exclude_files: [".gz$"] | |||
|
|||
multiline: | |||
pattern: '^\[?[0-9]{4}-[0-9]{2}-[0-9]{2}' | |||
pattern: '^(\[?[0-9]{4}-[0-9]{2}-[0-9]{2}|{)' |
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.
This is kind of interesting. In the event for json it's not a multiline anymore but here we still need the multiline config 🤔
Good for now, jus thought I mention it.
874a9cf
to
7d34e86
Compare
7d34e86
to
6a6b3fa
Compare
This PR teaches the
elasticsearch/slowlog
fileset to ingest structured Elasticsearch search and indexing slow logs.This PR takes the same approach as #10352, in that it creates an entrypoint pipeline,
pipeline.json
, that delegates further processing of a log entry depending on what it sees as the first character of the entry:{
, it assumes the log line is structured as JSON and delegates further processing topipeline-json.json
.pipeline-plaintext.json
.