mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2026-09-24 05:39:05 +00:00
update elasticsearch w/ ssl & xpack support
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# ansible_managed
|
||||
input {
|
||||
beats {
|
||||
port => 5046
|
||||
}
|
||||
}
|
||||
|
||||
filter {
|
||||
}
|
||||
|
||||
output {
|
||||
elasticsearch {
|
||||
# Reach Elasticsearch over the shared docker network using its service name.
|
||||
hosts => ["{{ 'https' if elk_tls_enabled else 'http' }}://{{ elk_elasticsearch_client_host }}:9200"]
|
||||
{% if elk_effective_security_enabled %}
|
||||
user => "logstash_system"
|
||||
password => "{{ elk_logstash_system_password }}"
|
||||
{% endif %}
|
||||
{% if elk_tls_enabled %}
|
||||
ssl_enabled => true
|
||||
# Public CA (Let's Encrypt) - trusted by Logstash's default JVM trust
|
||||
# store already, no custom CA needs to be supplied here.
|
||||
{% endif %}
|
||||
index => "laravel-logs-%{+YYYY.MM}"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user