17d8332604
Co-Authored-By: Doug Szumski <doug@stackhpc.com> Closes-Bug: #1884090 Depends-On: https://review.opendev.org/#/c/736768 Change-Id: If2d0dd1739e484b14e3c15a185a236918737b0ab
22 lines
599 B
Django/Jinja
22 lines
599 B
Django/Jinja
# Persist transformed logs to Elasticsearch
|
|
|
|
input {
|
|
kafka {
|
|
bootstrap_servers => "{{ monasca_kafka_servers }}"
|
|
topics => ["{{ monasca_transformed_logs_topic }}"]
|
|
group_id => "log_persister"
|
|
consumer_threads => "{{ monasca_log_pipeline_threads }}"
|
|
codec => json
|
|
}
|
|
}
|
|
|
|
output {
|
|
elasticsearch {
|
|
index => "monasca-%{[meta][tenantId]}-%{+YYYY.MM.dd}"
|
|
hosts => [{{ monasca_elasticsearch_servers }}]
|
|
document_type => "log"
|
|
template_name => "monasca"
|
|
template => "/etc/logstash/elasticsearch-template.json"
|
|
}
|
|
}
|