Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 895e2a68 authored by Natalia Szakiel's avatar Natalia Szakiel
Browse files

added logstash

parent d2ce4563
No related branches found
No related tags found
3 merge requests!48Develop,!46Develop,!3Added filebeat eck
......@@ -23,6 +23,19 @@ spec:
- name: logstash-pipeline
mountPath: /usr/share/logstash/pipeline/logstash.conf
subPath: logstash.conf
env:
- name: LOGSTASH_USER
valueFrom:
secretKeyRef:
name: logstash-writer-secret
key: username
- name: LOGSTASH_PASSWORD
valueFrom:
secretKeyRef:
name: logstash-writer-secret
key: password
- name: ELASTIC_ELASTICSEARCH_ES_HOSTS
value: 'https://elastic-elasticsearch-es-http.{{ .Release.Namespace }}.svc:9200'
volumes:
- name: logstash-pipeline
configMap:
......
......@@ -116,12 +116,12 @@ logstash:
}
}
output {
#elasticsearch {
# hosts => ["http://elasticsearch-es-http:9200"]
# index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
# user => "elastic"
# password => "your_password"
#}
elasticsearch {
hosts => [ "${ELASTIC_ELASTICSEARCH_ES_HOSTS}" ]
index => "%{[@metadata][beat]}-%{[@metadata][version]}-%{+YYYY.MM.dd}"
user => "${LOGSTASH_USER}"
password => "${LOGSTASH_PASSWORD}"
}
stdout {
codec => rubydebug
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment