Connecting Logstash to Elasticsearch
This commit is contained in:
@@ -4,6 +4,10 @@ metadata:
|
||||
name: logstash-config
|
||||
namespace: app-notifications
|
||||
data:
|
||||
logstash.yml: |
|
||||
http.host: "0.0.0.0"
|
||||
xpack.monitoring.enabled: false
|
||||
|
||||
logstash.conf: |
|
||||
input {
|
||||
beats {
|
||||
@@ -14,5 +18,11 @@ data:
|
||||
if [level] == "DEBUG" { drop {} }
|
||||
}
|
||||
output {
|
||||
stdout { codec => json } # for testing
|
||||
elasticsearch {
|
||||
hosts => ["http://elasticsearch:9200"]
|
||||
user => "elastic"
|
||||
password => "${ELASTIC_PASSWORD}"
|
||||
ssl_verification_mode => none
|
||||
index => "app-notifications-%{+YYYY.MM.dd}"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user