-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Introduce auto detection of format * Update docs * Auto detect format for slowlogs * Exclude JSON logs from multiline matching * Adding CHANGELOG entry * Fix typo * Parsing everything as JSON first * Going back to old processor definitions * Adding Known Issues section in doc * Completing regex pattern * Updating regex pattern * Generating docs
- Loading branch information
1 parent
462a2b4
commit 28284da
Showing
15 changed files
with
109 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
description: Pipeline for parsing logstash node logs | ||
processors: | ||
- rename: | ||
field: '@timestamp' | ||
target_field: event.created | ||
- grok: | ||
field: message | ||
patterns: | ||
- ^%{CHAR:first_char} | ||
pattern_definitions: | ||
CHAR: . | ||
- pipeline: | ||
if: ctx.first_char != '{' | ||
name: '{< IngestPipeline "pipeline-plaintext" >}' | ||
- pipeline: | ||
if: ctx.first_char == '{' | ||
name: '{< IngestPipeline "pipeline-json" >}' | ||
- remove: | ||
field: | ||
- first_char | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
module_version: 1.0 | ||
|
||
var: | ||
- name: format | ||
default: plain | ||
- name: paths | ||
default: | ||
- /var/log/logstash/logstash-{{.format}}*.log | ||
- /var/log/logstash/logstash-plain*.log | ||
- /var/log/logstash/logstash-json*.log | ||
os.windows: | ||
- c:/programdata/logstash/logs/logstash-{{.format}}*.log | ||
- c:/programdata/logstash/logs/logstash-plain*.log | ||
- c:/programdata/logstash/logs/logstash-json*.log | ||
|
||
ingest_pipeline: ingest/pipeline-{{.format}}.yml | ||
ingest_pipeline: | ||
- ingest/pipeline.yml | ||
- ingest/pipeline-plaintext.yml | ||
- ingest/pipeline-json.yml | ||
input: config/log.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
description: Pipeline for parsing logstash slow logs | ||
processors: | ||
- rename: | ||
field: '@timestamp' | ||
target_field: event.created | ||
- grok: | ||
field: message | ||
patterns: | ||
- ^%{CHAR:first_char} | ||
pattern_definitions: | ||
CHAR: . | ||
- pipeline: | ||
if: ctx.first_char != '{' | ||
name: '{< IngestPipeline "pipeline-plaintext" >}' | ||
- pipeline: | ||
if: ctx.first_char == '{' | ||
name: '{< IngestPipeline "pipeline-json" >}' | ||
- remove: | ||
field: | ||
- first_char | ||
on_failure: | ||
- set: | ||
field: error.message | ||
value: '{{ _ingest.on_failure_message }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
module_version: 1.0 | ||
|
||
var: | ||
- name: format | ||
default: plain | ||
- name: paths | ||
default: | ||
- /var/log/logstash/logstash-slowlog-{{.format}}*.log | ||
- /var/log/logstash/logstash-slowlog-plain*.log | ||
- /var/log/logstash/logstash-slowlog-json*.log | ||
os.windows: | ||
- c:/programdata/logstash/logs/logstash-slowlog-{{.format}}*.log | ||
- c:/programdata/logstash/logs/logstash-slowlog-plain*.log | ||
- c:/programdata/logstash/logs/logstash-slowlog-json*.log | ||
|
||
ingest_pipeline: ingest/pipeline-{{.format}}.yml | ||
ingest_pipeline: | ||
- ingest/pipeline.yml | ||
- ingest/pipeline-plaintext.yml | ||
- ingest/pipeline-json.yml | ||
input: config/slowlog.yml |