diff --git a/pages/cockpit/how-to/send-metrics-logs-to-cockpit.mdx b/pages/cockpit/how-to/send-metrics-logs-to-cockpit.mdx index 82c68de0d6..c0da1643a3 100644 --- a/pages/cockpit/how-to/send-metrics-logs-to-cockpit.mdx +++ b/pages/cockpit/how-to/send-metrics-logs-to-cockpit.mdx @@ -57,7 +57,7 @@ You can push logs with any Loki compatible agent such as the [Promtail](https:// 1. Open a terminal and run `pip install python-logging-loki` or `pip3 install python-logging-loki` if you are using Python 3, to install the [logging_loki](https://pypi.org/project/python-logging-loki/) package to send your Python logs. 2. [Create a Cockpit token](/cockpit/how-to/create-token/) with the **Push** permission for logs. - 3. Create a `python_logs.py` Python file and paste the following code snippet into it. Make sure that you replace `000avb0d-34ae-66hh-643b-f9e0n3k17773` with the ID of your logs data source, `$SCW_API_SECRET_KEY` with your API secret key and `$COCKPIT_TOKEN_SECRET_KEY` with your Cockpit token's secret key. + 3. Create a `python_logs.py` Python file and paste the following code snippet into it. Make sure that you replace `000avb0d-34ae-66hh-643b-f9e0n3k17773` with the ID of your logs data source and `$COCKPIT_TOKEN_SECRET_KEY` with your Cockpit token's secret key. ``` import logging