-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[logstash] align mappings with metricbeat (#3993)
* ecs fields * node data stream fields * node_stats data stream fields * _dev/deploy configuration * Update packages/logstash/_dev/deploy/docker/config/logstash.yml Co-authored-by: Mat Schaffer <mat@schaffer.me> Co-authored-by: Mat Schaffer <mat@schaffer.me>
- Loading branch information
1 parent
a77c3a0
commit 6422887
Showing
14 changed files
with
273 additions
and
132 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
http.host: "0.0.0.0" | ||
config.reload.automatic: 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,7 @@ | ||
- pipeline.id: pipeline-with-persisted-queue | ||
path.config: "/usr/share/logstash/pipeline/persisted-queue.conf" | ||
queue.type: persisted | ||
- pipeline.id: pipeline-with-memory-queue | ||
path.config: "/usr/share/logstash/pipeline/memory-queue.conf" | ||
- pipeline.id: standalone-pipeline | ||
path.config: "/usr/share/logstash/pipeline/standalone-pipeline.conf" |
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,9 @@ | ||
version: '2.3' | ||
services: | ||
logstash: | ||
image: "docker.elastic.co/logstash/logstash:8.5.0-SNAPSHOT" | ||
volumes: | ||
- "./pipeline:/usr/share/logstash/pipeline" | ||
- "./config:/usr/share/logstash/config" | ||
ports: | ||
- "127.0.0.1:9600:9600" |
15 changes: 15 additions & 0 deletions
15
packages/logstash/_dev/deploy/docker/pipeline/memory-queue.conf
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,15 @@ | ||
input { | ||
java_generator { | ||
eps => 10 | ||
} | ||
} | ||
|
||
output { | ||
elasticsearch { | ||
hosts => ["https://elasticsearch:9200"] | ||
user => "elastic" | ||
password => "changeme" | ||
index => "logstash-memory-queue" | ||
ssl_certificate_verification => "false" | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
packages/logstash/_dev/deploy/docker/pipeline/persisted-queue.conf
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,15 @@ | ||
input { | ||
java_generator { | ||
eps => 50 | ||
} | ||
} | ||
|
||
output { | ||
elasticsearch { | ||
hosts => ["https://elasticsearch:9200"] | ||
user => "elastic" | ||
password => "changeme" | ||
index => "logstash-persisted-queue" | ||
ssl_certificate_verification => "false" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
packages/logstash/_dev/deploy/docker/pipeline/standalone-pipeline.conf
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,9 @@ | ||
input { | ||
java_generator { | ||
eps => 5 | ||
} | ||
} | ||
|
||
output { | ||
stdout { } | ||
} |
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 |
---|---|---|
@@ -1,45 +1,49 @@ | ||
- name: logstash.node | ||
- name: logstash | ||
type: group | ||
release: ga | ||
fields: | ||
- name: host | ||
- name: elasticsearch.cluster.id | ||
type: keyword | ||
- name: version | ||
type: keyword | ||
- name: id | ||
type: keyword | ||
- name: state.pipeline | ||
- name: node | ||
type: group | ||
fields: | ||
- name: id | ||
- name: jvm | ||
type: group | ||
fields: | ||
- name: version | ||
type: keyword | ||
ignore_above: 1024 | ||
- name: host | ||
type: keyword | ||
- name: hash | ||
- name: version | ||
type: keyword | ||
- name: ephemeral_id | ||
- name: id | ||
type: keyword | ||
- name: batch_size | ||
type: long | ||
- name: workers | ||
type: long | ||
- name: representation | ||
- name: state.pipeline | ||
type: group | ||
fields: | ||
- name: hash | ||
- name: id | ||
type: keyword | ||
- name: type | ||
- name: hash | ||
type: keyword | ||
- name: version | ||
- name: ephemeral_id | ||
type: keyword | ||
- name: graph | ||
- name: batch_size | ||
type: long | ||
- name: workers | ||
type: long | ||
- name: representation | ||
type: group | ||
fields: | ||
- name: edges | ||
type: object | ||
- name: vertices | ||
type: object | ||
- name: jvm | ||
type: group | ||
fields: | ||
- name: version | ||
type: keyword | ||
description: JVM version | ||
- name: hash | ||
type: keyword | ||
- name: type | ||
type: keyword | ||
- name: version | ||
type: keyword | ||
- name: graph | ||
type: group | ||
fields: | ||
- name: edges | ||
type: object | ||
- name: vertices | ||
type: object |
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
Oops, something went wrong.