mirror of
https://github.com/KevinMidboe/playbooks-retailor.git
synced 2026-09-07 21:42:06 +00:00
39 lines
914 B
Django/Jinja
39 lines
914 B
Django/Jinja
# ansible_managed
|
|
input {
|
|
beats {
|
|
port => 5044
|
|
}
|
|
tcp {
|
|
port => 5000
|
|
codec => json_lines
|
|
}
|
|
udp {
|
|
port => 5000
|
|
codec => json_lines
|
|
}
|
|
}
|
|
|
|
filter {
|
|
# Add filters here as needed (grok, mutate, date, etc.)
|
|
}
|
|
|
|
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 => "logstash-%{+YYYY.MM.dd}"
|
|
}
|
|
|
|
# Uncomment for local debugging of pipeline output:
|
|
# stdout { codec => rubydebug }
|
|
}
|