forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding fileset JVM GC logs for Elasticsearch Filebeat module. This baseline fileset does not do much yet, more to come. elastic#5301.
- Loading branch information
Showing
14 changed files
with
887 additions
and
1 deletion.
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,16 @@ | ||
- name: gc | ||
type: group | ||
description: > | ||
fields: | ||
- name: relative_process_timestamp_secs | ||
type: float | ||
description: > | ||
Garbage collection threads total stop time seconds. | ||
- name: threads_total_stop_time_secs | ||
type: float | ||
description: > | ||
Garbage collection threads total stop time seconds. | ||
- name: stopping_threads_time_secs | ||
type: float | ||
description: > | ||
Time took to stop threads seconds. |
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,14 @@ | ||
type: log | ||
paths: | ||
{{ range $i, $path := .paths }} | ||
- {{$path}} | ||
{{ end }} | ||
exclude_files: [".gz$"] | ||
multiline: | ||
pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}' | ||
negate: true | ||
match: after | ||
|
||
fields: | ||
service.name: "elasticsearch" | ||
fields_under_root: true |
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,39 @@ | ||
{ | ||
"description": "Pipeline for parsing Elasticsearch JVM garbage collection logs", | ||
"processors": [ | ||
{ | ||
"grok": { | ||
"field": "message", | ||
"patterns": [ | ||
"%{GCTIMESTAMP}: %{GCPROCRUNTIME}: Total time for which application threads were stopped: %{BASE10NUM:elasticsearch.gc.threads_total_stop_time_secs} seconds, Stopping threads took: %{BASE10NUM:elasticsearch.gc.stopping_threads_time_secs} seconds", | ||
"%{GCTIMESTAMP}: %{GREEDYMULTILINE:message}" | ||
], | ||
"pattern_definitions": { | ||
"GREEDYMULTILINE": "(.|\n)*", | ||
"GCTIMESTAMP": "%{TIMESTAMP_ISO8601:timestamp}", | ||
"GCPROCRUNTIME": "%{BASE10NUM:elasticsearch.gc.relative_process_timestamp_secs}" | ||
} | ||
} | ||
}, | ||
{ | ||
"rename": { | ||
"field": "@timestamp", | ||
"target_field": "event.created" | ||
} | ||
}, | ||
{ | ||
"rename": { | ||
"field": "timestamp", | ||
"target_field": "@timestamp" | ||
} | ||
} | ||
], | ||
"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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module_version: 1.0 | ||
|
||
var: | ||
- name: paths | ||
default: | ||
- /var/log/elasticsearch/gc.log.[0-9]* | ||
os.darwin: [] | ||
os.windows: [] | ||
|
||
ingest_pipeline: ingest/pipeline.json | ||
input: config/gc.yml |
Large diffs are not rendered by default.
Oops, something went wrong.
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,3 @@ | ||
2018-06-11T01:53:11.382+0000: 1396138.752: Total time for which application threads were stopped: 0.0083760 seconds, Stopping threads took: 0.0000702 seconds | ||
|
||
|
45 changes: 45 additions & 0 deletions
45
filebeat/module/elasticsearch/gc/test/test.log-expected.json
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,45 @@ | ||
[ | ||
{ | ||
"_index": "filebeat-7.0.0-alpha1-2018.06.15", | ||
"_type": "doc", | ||
"_id": "w-p9BWQBiF0NvuCjhcyk", | ||
"_score": 1, | ||
"_source": { | ||
"offset": 160, | ||
"prospector": { | ||
"type": "log" | ||
}, | ||
"source": "/Users/jbryan/dev/go/src/github.com/elastic/beats/filebeat/module/elasticsearch/gc/test/test.log", | ||
"message": "2018-06-11T01:53:11.382+0000: 1396138.752: Total time for which application threads were stopped: 0.0083760 seconds, Stopping threads took: 0.0000702 seconds\n\n", | ||
"fileset": { | ||
"module": "elasticsearch", | ||
"name": "gc" | ||
}, | ||
"input": { | ||
"type": "log" | ||
}, | ||
"@timestamp": "2018-06-11T01:53:11.382+0000", | ||
"elasticsearch": { | ||
"gc": { | ||
"stopping_threads_time_secs": "0.0000702", | ||
"relative_process_timestamp_secs": "1396138.752", | ||
"threads_total_stop_time_secs": "0.0083760" | ||
} | ||
}, | ||
"service": { | ||
"name": "elasticsearch" | ||
}, | ||
"host": { | ||
"name": "peanut.local" | ||
}, | ||
"beat": { | ||
"hostname": "peanut.local", | ||
"name": "peanut.local", | ||
"version": "7.0.0-alpha1" | ||
}, | ||
"event": { | ||
"created": "2018-06-15T22:07:43.170Z" | ||
} | ||
} | ||
} | ||
] |
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,2 +1,3 @@ | ||
dashboards: | ||
|
||
|
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