mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2026-09-07 21:42:06 +00:00
27 lines
662 B
Django/Jinja
27 lines
662 B
Django/Jinja
# 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}"
|
|
}
|
|
}
|