--- title: "Create Secrets for Telemetry Collector" slug: "create-secrets-for-telemetry-collector" tags: ["Telemetry Collector"] updated: 2026-06-16T13:06:04Z published: 2026-06-16T13:06:04Z canonical: "docs.crossworkassurance.cisco.com/create-secrets-for-telemetry-collector" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Create Secrets for Telemetry Collector ## Retrieve Telemetry Collector Secrets Before you can start the Telemetry Collector, a **secrets.yaml** file must be provided. This file must contain the agent identifier and an initial JSON Web Token (JWT) required for the handshake when connecting to the Management web socket in Sensor Collector. You can create the **secrets.yaml** file using either the User Interface method or the API method. Refer to the following section for instructions pertaining to the User Interface method. ## User Interface Method Follow these steps to generate and save the **secrets.yaml** file using the user interface: **To create the secrets.yaml file using the user interface:** 1. In **Sensors > Collectors > Telemetry collectors**, choose the Telemetry Collector. The right sidebar appears. 2. In **Summary > Telemetry container setup**, click **Generate auth token**. The contents for the **secrets.yaml** file will be created and displayed. ![Auth token](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/Screenshot%202024-10-24%20at%208.44.39%E2%80%AFAM.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A22Z&se=2026-12-01T00%3A48%3A22Z&sr=b&sp=r&sig=%2F1XLV8m2PsNff9g%2B0%2FqsSn6I4srDhkdqws34dhEghBQ%3D) 3. Copy the generated file contents by using the **Copy to clipboard** button. ![Gen auth token](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/Screenshot%202024-10-24%20at%208.45.02%E2%80%AFAM.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A48%3A22Z&se=2026-12-01T00%3A48%3A22Z&sr=b&sp=r&sig=f7OUR4SMVVdCrweU1o%2Fy2I37sFBdo3qfK42WF5lV%2B08%3D) 4. Open a text editor and paste the copied contents. 5. Save the file as **secrets.yaml**. 6. Store the **secrets.yaml** file in the path specified in your Docker compose file (for example: **./secrets/secrets.yaml:/run/secrets/secrets.yaml)**. For guidance in creating a Docker compose file, see [Deploying Telemetry Collector in Docker](/25-7/docs/deploying-telemetry-collector-in-docker). **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)