dhegberg commented on a change in pull request #7437: [AIRFLOW-2325] Add 
CloudwatchTaskHandler option for remote task loggi…
URL: https://github.com/apache/airflow/pull/7437#discussion_r385254375
 
 

 ##########
 File path: docs/howto/write-logs.rst
 ##########
 @@ -115,6 +115,29 @@ To configure it, you must additionally set the endpoint 
url to point to your loc
 You can do this via the Connection Extra ``host`` field.
 For example, ``{"host": "http://localstack:4572"}``
 
+.. _write-logs-amazon-cloudwatch:
+
+Writing Logs to Amazon Cloudwatch
+---------------------------------
+
+
+Enabling remote logging
+'''''''''''''''''''''''
+
+To enable this feature, ``airflow.cfg`` must be configured as follows:
+
+.. code-block:: ini
+
+    [logging]
+    # Airflow can store logs remotely in AWS Cloudwatch. Users must supply a 
log group
+    # ARN (starting with 'cloudwatch://...') and an Airflow connection
+    # id that provides write and read access to the log location.
+    remote_logging = True
+    remote_base_log_folder = cloudwatch://arn:aws:logs:<region name>:<account 
id>:log-group:<group name>:*
 
 Review comment:
   When you display the ARNs in the cloudwatch console or via a 
describe-log-groups call, they all have a '*' suffix.
   
   The docs however describe the arn without a suffix: 
https://docs.aws.amazon.com/IAM/latest/UserGuide/list_amazoncloudwatchlogs.html#amazoncloudwatchlogs-resources-for-iam-policies
   
   Ill go the ARN format that is consistent with the docs and if users include 
the * when copying the ARN it will work anyway.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to