Skip to content

Commit

Permalink
remove system.type
Browse files Browse the repository at this point in the history
  • Loading branch information
crespocarlos committed Aug 18, 2022
1 parent f229759 commit d5da4a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,6 @@ processors:
formats:
- ISO8601
ignore_failure: true
- set:
field: service.type
value: 'elasticsearch'
on_failure:
- set:
field: error.message
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,3 @@ processors:
- set:
field: event.dataset
value: elasticsearch.deprecation
- set:
field: service.type
value: 'elasticsearch'
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: Pipeline for parsing the Elasticsearch 8.0 server log file in JSON
on_failure:
- set:
field: error.message
value: '{{ _ingest.on_failure_message }}'
value: "{{ _ingest.on_failure_message }}"
processors:
- json:
field: message
Expand All @@ -14,7 +14,7 @@ processors:
- drop:
if: ctx.elasticsearch.server.event.dataset != 'elasticsearch.server'
- set:
value: '{{ elasticsearch.server.event.dataset }}'
value: "{{ elasticsearch.server.event.dataset }}"
field: event.dataset
ignore_empty_value: true
- remove:
Expand All @@ -23,7 +23,7 @@ processors:
field: ecs.version
path: elasticsearch.server
- set:
value: '{{ elasticsearch.server.ecs.version }}'
value: "{{ elasticsearch.server.ecs.version }}"
field: ecs.version
ignore_empty_value: true
- remove:
Expand All @@ -35,9 +35,6 @@ processors:
field: elasticsearch.server.service.name
target_field: service.name
ignore_missing: true
- set:
field: service.type
value: 'elasticsearch'
- dot_expander:
field: elasticsearch.cluster.name
path: elasticsearch.server
Expand Down Expand Up @@ -91,27 +88,27 @@ processors:
GREEDYMULTILINE: |-
(.|
)*
INDEXNAME: '[a-zA-Z0-9_.-]*'
INDEXNAME: "[a-zA-Z0-9_.-]*"
GC_ALL:
\[gc\]\[%{NUMBER:elasticsearch.server.gc.overhead_seq}\] overhead, spent
\[%{NUMBER:elasticsearch.server.gc.collection_duration.time:float}%{DATA:elasticsearch.server.gc.collection_duration.unit}\]
collecting in the last \[%{NUMBER:elasticsearch.server.gc.observation_duration.time:float}%{DATA:elasticsearch.server.gc.observation_duration.unit}\]
GC_YOUNG: \[gc\]\[young\]\[%{NUMBER:elasticsearch.server.gc.young.one}\]\[%{NUMBER:elasticsearch.server.gc.young.two}\]%{SPACE}%{GREEDYMULTILINE:message}
patterns:
- '%{GC_ALL}'
- '%{GC_YOUNG}'
- "%{GC_ALL}"
- "%{GC_YOUNG}"
- ((\[%{INDEXNAME:elasticsearch.index.name}\]|\[%{INDEXNAME:elasticsearch.index.name}\/%{DATA:elasticsearch.index.id}\]))?%{SPACE}%{GREEDYMULTILINE:message}
- remove:
field: elasticsearch.server.message
- set:
field: '@timestamp'
value: '{{ elasticsearch.server.@timestamp }}'
field: "@timestamp"
value: "{{ elasticsearch.server.@timestamp }}"
ignore_empty_value: true
- remove:
field: elasticsearch.server.@timestamp
- date:
field: '@timestamp'
target_field: '@timestamp'
field: "@timestamp"
target_field: "@timestamp"
formats:
- ISO8601
ignore_failure: true

0 comments on commit d5da4a0

Please sign in to comment.