DCD-436: Add ability to disable log aggregation.

This commit is contained in:
Steve Smith
2019-09-11 14:59:00 +10:00
parent 35e37afd24
commit 114c1d2e8e
7 changed files with 108 additions and 16 deletions

View File

@@ -4,23 +4,27 @@
"run_as_user": "root"
},
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{% set comma = joiner(',') %}
{% for path in atl_product_log_locations[atl_product_family] %}
{{ comma() }}
{
"file_path": "{{ path }}/*",
"log_group_name": "{{ atl_aws_log_group }}",
"log_stream_name": "{instance_id}"
}
{% endfor %}
]
{% if atl_aws_enable_cw_logs == true or atl_aws_enable_cw_logs == 'true' %}
"logs": {
"logs_collected": {
"files": {
"collect_list": [
{% set comma = joiner(',') %}
{% for path in atl_product_log_locations[atl_product_family] %}
{{ comma() }}
{
"file_path": "{{ path }}/*",
"log_group_name": "{{ atl_aws_log_group }}",
"log_stream_name": "{instance_id}"
}
{% endfor %}
]
}
}
}
},
},
{% endif %}
"metrics": {
"append_dimensions": {