Commit c38c884d authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Configuration logstash and metricbeat.

parent 10b4d87f
Pipeline #37330 passed with stages
in 4 minutes and 22 seconds
output {
elasticsearch {
hosts => ["localhost"]
# manage_template => false
# index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
# document_type => "%{[@metadata][type]}"
if [type] == "Logstash" {
elasticsearch {
hosts => ["localhost"]
}
} else {
elasticsearch {
hosts => ["localhost"]
manage_template => false
index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
document_type => "%{[@metadata][type]}"
}
}
}
\ No newline at end of file
......@@ -38,7 +38,8 @@ services:
- nomad_elk:/var/lib/elasticsearch
ports:
- 15601:5601 # kibana web
- 5044:5044 # expose to host, allows metricbeat on host to send data
- 5044:5044 # expose to host, allows metricbeat on host to send data
- 29200:9200 # allows metricbeat config to access es
api:
links:
......@@ -47,6 +48,8 @@ services:
- /nomad:/nomad
worker:
environment:
NOMAD_LOGSTASH_LEVEL: INFO
links:
- elk
volumes:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment