ashb 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_r385128092
 
 

 ##########
 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:
   What is the `*` on the end here for? What other possible values would it 
have?

----------------------------------------------------------------
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