You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: manage-data/ingest/ingesting-data-from-applications/ingest-logs-from-python-application-using-filebeat.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,19 +123,19 @@ In this step, you’ll create a Python script that generates logs in JSON format
123
123
124
124
## Prepare your connection and authentication details [ec-authentication-details]
125
125
126
-
To connect to your {{ech}} deployment, stream data, and issue queries, you have to specify the connection details using your deployment's [Cloud ID](/deploy-manage/deploy/elastic-cloud/find-cloud-id.md), and you have to authenticate using either _basic authentication_ or an _API key_.
126
+
To connect to your {{ech}} deployment, stream data, and issue queries, you have to specify the connection details using your deployment's Cloud ID, and you have to authenticate using either _basic authentication_ or an _API key_.
127
127
128
128
### Cloud ID
129
129
130
-
To find the Cloud ID of your deployment, go to the {{kib}} main menu, then select **Management** → **Integrations** → **Connection details**. Note that the Cloud ID value isin the format`deployment-name:hash`. Save this value to use it later.
130
+
To find the [Cloud ID]([Cloud ID](/deploy-manage/deploy/elastic-cloud/find-cloud-id.md)) of your deployment, go to the {{kib}} main menu, then select **Management** → **Integrations** → **Connection details**. Note that the Cloud ID value isin the format`deployment-name:hash`. Save this value to use it later.
131
131
132
132
### Basic authentication
133
133
134
134
To authenticate and send data to {{ech}}, you can use the username and password you saved when you created your deployment. We use this method to set up the Filebeat connection in the [Configure Filebeat to access {{ech}}](#ec-configure-access) section.
135
135
136
136
### API key
137
137
138
-
You can also generate an _API key_ through the {{ech}} console, and configure Filebeat to use the new key to connect securely to your deployment. API keys are the preferred method for connecting to production environments.
138
+
You can also generate an [API key](/deploy-manage/api-keys.md) through the {{ech}} console, and configure Filebeat to use the new key to connect securely to your deployment. API keys are the preferred method for connecting to production environments.
1. Uncomment the `cloud.id` line, and add the deployment’s Cloud IDas the key's value. Note that the `cloud.id` value is in the format `deployment-name:hash`. Find your Cloud ID by going to the {{kib}} main menu, and selecting **Management** → **Integrations** → **Connection details**.
207
207
2. Uncomment the `cloud.auth` line, and add the username and password for your deployment in the format`username:password`. For example, `cloud.auth: elastic:57ugj782kvkwmSKg8uVe`.
208
208
209
+
::::{note}
210
+
As an alternative to configuring the connection using [cloud.id and cloud.auth](beats://reference/beats/filebeat/configure-cloud-id.md), you can specify the {{es}} URLand authentication details directly in the [{{es}} output](beats://reference/beats/filebeat/elasticsearch-output.md). This is useful when connecting to a different deployment type, such as a self-managed cluster.
211
+
::::
212
+
209
213
#### Configure an API key [ec-configure-api-key]
210
214
211
215
To use an _API key_ to authenticate, leave the comment on the `cloud.auth` line as Filebeat will use an API key instead of the deployment credentials to authenticate.
0 commit comments