mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-930: Consolidate log definitions and forward audit logs to cloudwatch.
This commit is contained in:
@@ -10,5 +10,8 @@ atl_aws_enable_cloudwatch_logs: false
|
||||
# Mostly for molecule testing, as skip-tags doesn't work with handlers.
|
||||
atl_aws_agent_restart: true
|
||||
|
||||
atl_aws_log_group: "{{ atl_product_edition }}-{{ atl_aws_stack_name }}"
|
||||
atl_aws_provisioning_log_group: "{{ atl_aws_log_group }}-provisioning"
|
||||
atl_aws_log_group_base: "{{ atl_product_edition }}-{{ atl_aws_stack_name }}"
|
||||
atl_aws_log_groups:
|
||||
product: "{{ atl_aws_log_group_base }}"
|
||||
audit: "{{ atl_aws_log_group_base }}-audit"
|
||||
provisioning: "{{ atl_aws_log_group_base }}-provisioning"
|
||||
|
||||
@@ -11,19 +11,11 @@
|
||||
"collect_list": [
|
||||
|
||||
{% set comma = joiner(',') %}
|
||||
{% for path in atl_product_log_locations[atl_product_family] %}
|
||||
{% for logspec in atl_product_logs[atl_product_family] %}
|
||||
{{ comma() }}
|
||||
{
|
||||
"file_path": "{{ path }}/*",
|
||||
"log_group_name": "{{ atl_aws_log_group }}",
|
||||
"log_stream_name": "{instance_id}"
|
||||
}
|
||||
{% endfor %}
|
||||
{% for path in atl_provisioner_log_locations %}
|
||||
{{ comma() }}
|
||||
{
|
||||
"file_path": "{{ path }}",
|
||||
"log_group_name": "{{ atl_aws_provisioning_log_group }}",
|
||||
"file_path": "{{ logspec.path }}",
|
||||
"log_group_name": "{{ atl_aws_log_groups[logspec.type] }}",
|
||||
"log_stream_name": "{instance_id}"
|
||||
}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user