Skip to content

Commit

Permalink
Added updated logstash configs for multiple pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
MSAdministrator committed May 13, 2021
1 parent ebdd417 commit 1a629a0
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
13 changes: 6 additions & 7 deletions logstash/pipeline/logstash.conf
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
input {
beats {
port => 5044
}
tcp {
port => "5045"
codec => json
port => 5045
ssl => true
ssl_certificate => "${CONFIG_DIR}/logstash.crt"
ssl_key => "${CONFIG_DIR}/logstash.pkcs8.key"
}
}
filter {

}
output {
elasticsearch {
hosts => [ "https://elasticsearch:9200" ]
hosts => ["https://elasticsearch:9200"]
user => "${ELASTIC_USERNAME}"
password => "${ELASTIC_PASSWORD}"
ssl => true
ssl_certificate_verification => true
cacert => "${CONFIG_DIR}/ca.crt"
index => "%{[@metadata][beat]}-%{[@metadata][version]}"
}
}
23 changes: 23 additions & 0 deletions logstash/pipeline/metricbeat.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
input {
beats {
port => 5044
ssl => true
ssl_certificate_authorities => ["${CONFIG_DIR}/ca.crt"]
ssl_certificate => "${CONFIG_DIR}/logstash.crt"
ssl_key => "${CONFIG_DIR}/logstash.pkcs8.key"
ssl_verify_mode => "force_peer"
}
}
filter {
}
output {
elasticsearch {
hosts => ["elasticsearch:9200"]
user => "${ELASTIC_USERNAME}"
password => "${ELASTIC_PASSWORD}"
ssl => true
ssl_certificate_verification => true
cacert => "${CONFIG_DIR}/ca.crt"
index => "%{[@metadata][beat]}-%{[@metadata][version]}"
}
}

0 comments on commit 1a629a0

Please sign in to comment.