> ## Documentation Index
> Fetch the complete documentation index at: https://v2galileo-dependabot-npm-and-yarn-ip-address-10-4-0.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Finding Your Organization Keys

Here are three variables that help connect your application to Galileo's services:

1. Galileo API Key (`GALILEO_API_KEY`)
2. Galileo Project (`GALILEO_PROJECT`)
3. Galileo Log stream (`GALILEO_LOG_STREAM`)

Let's break down what each variable does and where to find it within the UI.

<Tip>
  It's possible to create an API key by using [this API endpoint](/api-reference/api_keys/create-api-key).
</Tip>

## Galileo API key

You will need your Galileo API key to be able to send traces to a Log stream from your applications or run experiments in code.

<Steps>
  <Step title="Select the user menu">
    Select the user menu in the bottom left.

    <img src="https://mintcdn.com/v2galileo-dependabot-npm-and-yarn-ip-address-10-4-0/geZh_QenC2PiTQv_/references/faqs/user-menu.webp?fit=max&auto=format&n=geZh_QenC2PiTQv_&q=85&s=d4dd856060d65ccd2469d61941307fc2" alt="The user menu" width="1329" height="874" data-path="references/faqs/user-menu.webp" />
  </Step>

  <Step title="Open the API keys page">
    Select **API Keys** from the user menu.

    <Columns cols={2}>
      <img src="https://mintcdn.com/v2galileo-dependabot-npm-and-yarn-ip-address-10-4-0/geZh_QenC2PiTQv_/references/faqs/user-menu-api-key.webp?fit=max&auto=format&n=geZh_QenC2PiTQv_&q=85&s=a9fe29c51b291006838874d255793a88" alt="The API key menu" width="674" height="552" data-path="references/faqs/user-menu-api-key.webp" />
    </Columns>
  </Step>

  <Step title="Create a new API key">
    Select the **+Create new key** button to create a new API key.

    <img src="https://mintcdn.com/v2galileo-dependabot-npm-and-yarn-ip-address-10-4-0/geZh_QenC2PiTQv_/references/faqs/create-new-api-key-button.webp?fit=max&auto=format&n=geZh_QenC2PiTQv_&q=85&s=b534d90da898bea53768d75569df0890" alt="The create new API key button" width="1480" height="348" data-path="references/faqs/create-new-api-key-button.webp" />
  </Step>

  <Step title="Name your API key">
    Give your API key a name, and optionally set an expiry date. By default API keys expire after a year.

    <Columns cols={2}>
      <img src="https://mintcdn.com/v2galileo-dependabot-npm-and-yarn-ip-address-10-4-0/geZh_QenC2PiTQv_/references/faqs/create-api-key-dialog.webp?fit=max&auto=format&n=geZh_QenC2PiTQv_&q=85&s=7063290a0a1c5666c164766acfb18d4e" alt="The create API key dialog" width="1192" height="844" data-path="references/faqs/create-api-key-dialog.webp" />
    </Columns>
  </Step>

  <Step title="Copy your API key">
    Copy your API key and store it somewhere safe. You will not be able to see this key again.

    <Columns cols={2}>
      <img src="https://mintcdn.com/v2galileo-dependabot-npm-and-yarn-ip-address-10-4-0/geZh_QenC2PiTQv_/references/faqs/created-api-key.webp?fit=max&auto=format&n=geZh_QenC2PiTQv_&q=85&s=9d23e750b4abb247c6f24cf429529ab7" alt="The created API key" width="1194" height="646" data-path="references/faqs/created-api-key.webp" />
    </Columns>
  </Step>
</Steps>

## Where do I find my Galileo Project?

Your Galileo Project is the name of the project you create.

<Note>
  Below walkthrough is pending update for the current version of Galileo.
</Note>

<img src="https://mintcdn.com/v2galileo-dependabot-npm-and-yarn-ip-address-10-4-0/rtPwOM4-HhDMgUzx/images/create-new-project-project-key.gif?s=34eb1e31da5c2c6b2afd93263ba274e6" alt="How to create a new project key." width="2000" height="1142" data-path="images/create-new-project-project-key.gif" />

## Where do I find my Galileo Log stream?

The Galileo Log stream is the name of the specific Log stream that you are looking to record your logs in.

<Note>
  Below walkthrough is pending update for the current version of Galileo.
</Note>

To create a Log stream, first select the project you'd want to create a Log stream from.
Then, select `Connect your app` from the project home screen.

<img src="https://mintcdn.com/v2galileo-dependabot-npm-and-yarn-ip-address-10-4-0/rtPwOM4-HhDMgUzx/images/create-new-log-stream.png?fit=max&auto=format&n=rtPwOM4-HhDMgUzx&q=85&s=399b7765de7e260bdbca72e4865bde21" alt="Click Connect your app to create a new Log stream" width="3852" height="2418" data-path="images/create-new-log-stream.png" />

Once you've selected the `Connect your app` button, you'll see a modal pop up, select `Create Log stream`

<img src="https://mintcdn.com/v2galileo-dependabot-npm-and-yarn-ip-address-10-4-0/rtPwOM4-HhDMgUzx/images/create-log-stream-2.png?fit=max&auto=format&n=rtPwOM4-HhDMgUzx&q=85&s=f5a531869573242d26451c215b8a5c04" alt="Click Create Log stream to continue creating Log stream" width="3290" height="1850" data-path="images/create-log-stream-2.png" />.

Galileo will create a default Log stream with the key `my_log_stream` please be aware that this key is case-sensitive.

You can create additional Log streams for the same project by navigating to the left-hand side of the screen, toggling down and selecting the `Create Log stream` button.

<img src="https://mintcdn.com/v2galileo-dependabot-npm-and-yarn-ip-address-10-4-0/82MToYEp-EIW0vKo/images/add-log-stream.jpeg?fit=max&auto=format&n=82MToYEp-EIW0vKo&q=85&s=0eba04dc39b662469b20050a6ab23ef5" alt="How to create or add Log streams." width="884" height="516" data-path="images/add-log-stream.jpeg" />

Its from within this dropdown menu that you can also edit or delete Log streams. Keep in mind that the keys are case-sensitive, so if you change the name of the Log stream, you will also have to change how it is referenced within your application as well.

## Best practices and tips

* Keep your API keys secure and never share them publicly
* Create separate keys for different applications or environments
* Set expiration dates for temporary access
* Regularly rotate keys for enhanced security
* Use descriptive names to track key usage
