Skip to content

Commit d83a2f4

Browse files
(DOCS-12521) Batch 3: Logs (#32920)
* Logs updates * android * Fix issues * Reset files that use tabs
1 parent da2abeb commit d83a2f4

File tree

6 files changed

+73
-542
lines changed

6 files changed

+73
-542
lines changed

assets/scripts/config/regions.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -598,6 +598,33 @@ export default {
598598
ap2: '',
599599
gov: ''
600600
},
601+
kotlin_multiplatform_site_config: {
602+
us: '',
603+
us3: '\n .useSite(DatadogSite.US3)\n .trackCrashes(true)',
604+
us5: '\n .useSite(DatadogSite.US5)\n .trackCrashes(true)',
605+
eu: '\n .useSite(DatadogSite.EU1)\n .trackCrashes(true)',
606+
ap1: '\n .useSite(DatadogSite.AP1)\n .trackCrashes(true)',
607+
ap2: '\n .useSite(DatadogSite.AP2)\n .trackCrashes(true)',
608+
gov: '\n .useSite(DatadogSite.US1_FED)\n .trackCrashes(true)'
609+
},
610+
reactnative_sdk_init: {
611+
us: '',
612+
us3: '',
613+
us5: '\n\nawait DdSdkReactNative.initialize(config);',
614+
eu: '',
615+
ap1: '',
616+
ap2: '',
617+
gov: ''
618+
},
619+
roku_site: {
620+
us: 'us1',
621+
us3: 'us3',
622+
us5: 'us5',
623+
eu: 'eu1',
624+
ap1: 'ap1',
625+
ap2: 'ap2',
626+
gov: 'us1_fed'
627+
},
601628
cursor_mcp_install_deeplink: {
602629
us: 'cursor://anysphere.cursor-deeplink/mcp/install?name=datadog-onboarding-us1&config=eyJ1cmwiOiJodHRwczovL21jcC5kYXRhZG9naHEuY29tL2FwaS91bnN0YWJsZS9tY3Atc2VydmVyL21jcD90b29sc2V0cz1vbmJvYXJkaW5nIiwidHlwZSI6Im9hdXRoIn0=',
603630
us3: 'cursor://anysphere.cursor-deeplink/mcp/install?name=datadog-onboarding-us3&config=eyJ1cmwiOiJodHRwczovL21jcC51czMuZGF0YWRvZ2hxLmNvbS9hcGkvdW5zdGFibGUvbWNwLXNlcnZlci9tY3A/dG9vbHNldHM9b25ib2FyZGluZyIsInR5cGUiOiJvYXV0aCJ9',

content/en/logs/log_collection/_index.md

Lines changed: 8 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -146,101 +146,12 @@ Datadog provides logging endpoints for both SSL-encrypted connections and unencr
146146

147147
Use the [site][13] selector dropdown on the right side of the page to see supported endpoints by Datadog site.
148148

149-
{{< site-region region="us" >}}
150-
151-
| Site | Type | Endpoint | Port | Description |
152-
|------|-------------|---------------------------------------------------------------------------|--------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
153-
| US | HTTPS | `http-intake.logs.datadoghq.com` | 443 | Used by custom forwarder to send logs in JSON or plain text format over HTTPS. See the [Logs HTTP API documentation][1]. |
154-
| US | HTTPS | `agent-http-intake.logs.datadoghq.com` | 443 | Used by the Agent to send logs in JSON format over HTTPS. See the [Host Agent Log collection documentation][2]. |
155-
| US | HTTPS | `lambda-http-intake.logs.datadoghq.com` | 443 | Used by Lambda functions to send logs in raw, Syslog, or JSON format over HTTPS. |
156-
| US | HTTPS | `logs.`{{< region-param key="browser_sdk_endpoint_domain" code="true" >}} | 443 | Used by the Browser SDK to send logs in JSON format over HTTPS. |
157-
158-
[1]: /api/latest/logs/#send-logs
159-
[2]: /agent/logs/#send-logs-over-https
160-
{{< /site-region >}}
161-
162-
{{< site-region region="eu" >}}
163-
164-
| Site | Type | Endpoint | Port | Description |
165-
|------|-------------|---------------------------------------------------------------------------|------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
166-
| EU | HTTPS | `http-intake.logs.datadoghq.eu` | 443 | Used by custom forwarder to send logs in JSON or plain text format over HTTPS. See the [Logs HTTP API documentation.][1] |
167-
| EU | HTTPS | `agent-http-intake.logs.datadoghq.eu` | 443 | Used by the Agent to send logs in JSON format over HTTPS. See the [Host Agent Log collection documentation][2]. |
168-
| EU | HTTPS | `lambda-http-intake.logs.datadoghq.eu` | 443 | Used by Lambda functions to send logs in raw, Syslog, or JSON format over HTTPS. |
169-
| EU | HTTPS | `logs.`{{< region-param key="browser_sdk_endpoint_domain" code="true" >}} | 443 | Used by the Browser SDK to send logs in JSON format over HTTPS. |
170-
171-
[1]: /api/latest/logs/#send-logs
172-
[2]: /agent/logs/#send-logs-over-https
173-
{{< /site-region >}}
174-
175-
{{< site-region region="us3" >}}
176-
177-
| Site | Type | Endpoint | Port | Description |
178-
|------|-------|--------------------------------------------- |------|--------------------------------------------------------------------------------------------------------------------------|
179-
| US3 | HTTPS | `http-intake.logs.us3.datadoghq.com` | 443 | Used by custom forwarder to send logs in JSON or plain text format over HTTPS. See the [Logs HTTP API documentation][1]. |
180-
| US3 | HTTPS | `lambda-http-intake.logs.us3.datadoghq.com` | 443 | Used by Lambda functions to send logs in raw, Syslog, or JSON format over HTTPS. |
181-
| US3 | HTTPS | `agent-http-intake.logs.us3.datadoghq.com` | 443 | Used by the Agent to send logs in JSON format over HTTPS. See the [Host Agent Log collection documentation][2]. |
182-
| US3 | HTTPS | `logs.`{{< region-param key="browser_sdk_endpoint_domain" code="true" >}} | 443 | Used by the Browser SDK to send logs in JSON format over HTTPS. |
183-
184-
[1]: /api/latest/logs/#send-logs
185-
[2]: /agent/logs/#send-logs-over-https
186-
187-
{{< /site-region >}}
188-
189-
{{< site-region region="us5" >}}
190-
191-
| Site | Type | Endpoint | Port | Description |
192-
|------|-------|---------------------------------------------------------------------------|------|--------------------------------------------------------------------------------------------------------------------------|
193-
| US5 | HTTPS | `http-intake.logs.us5.datadoghq.com` | 443 | Used by custom forwarder to send logs in JSON or plain text format over HTTPS. See the [Logs HTTP API documentation][1]. |
194-
| US5 | HTTPS | `lambda-http-intake.logs.us5.datadoghq.com` | 443 | Used by Lambda functions to send logs in raw, Syslog, or JSON format over HTTPS. |
195-
| US5 | HTTPS | `agent-http-intake.logs.us5.datadoghq.com` | 443 | Used by the Agent to send logs in JSON format over HTTPS. See the [Host Agent Log collection documentation][2]. |
196-
| US5 | HTTPS | `logs.`{{< region-param key="browser_sdk_endpoint_domain" code="true" >}} | 443 | Used by the Browser SDK to send logs in JSON format over HTTPS. |
197-
198-
[1]: /api/latest/logs/#send-logs
199-
[2]: /agent/logs/#send-logs-over-https
200-
201-
{{< /site-region >}}
202-
203-
{{< site-region region="ap1" >}}
204-
205-
| Site | Type | Endpoint | Port | Description |
206-
|------|-------|---------------------------------------------------------------------------|------|--------------------------------------------------------------------------------------------------------------------------|
207-
| AP1 | HTTPS | `http-intake.logs.ap1.datadoghq.com` | 443 | Used by custom forwarder to send logs in JSON or plain text format over HTTPS. See the [Logs HTTP API documentation][1]. |
208-
| AP1 | HTTPS | `lambda-http-intake.logs.ap1.datadoghq.com` | 443 | Used by Lambda functions to send logs in raw, Syslog, or JSON format over HTTPS. |
209-
| AP1 | HTTPS | `agent-http-intake.logs.ap1.datadoghq.com` | 443 | Used by the Agent to send logs in JSON format over HTTPS. See the [Host Agent Log collection documentation][2]. |
210-
| AP1 | HTTPS | {{< region-param key="browser_sdk_endpoint_domain" code="true" >}} | 443 | Used by the Browser SDK to send logs in JSON format over HTTPS. |
211-
212-
[1]: /api/latest/logs/#send-logs
213-
[2]: /agent/logs/#send-logs-over-https
214-
215-
{{< /site-region >}}
216-
217-
{{< site-region region="ap2" >}}
218-
219-
| Site | Type | Endpoint | Port | Description |
220-
|------|-------|---------------------------------------------------------------------------|------|--------------------------------------------------------------------------------------------------------------------------|
221-
| AP2 | HTTPS | `http-intake.logs.ap2.datadoghq.com` | 443 | Used by custom forwarder to send logs in JSON or plain text format over HTTPS. See the [Logs HTTP API documentation][1]. |
222-
| AP2 | HTTPS | `lambda-http-intake.logs.ap2.datadoghq.com` | 443 | Used by Lambda functions to send logs in raw, Syslog, or JSON format over HTTPS. |
223-
| AP2 | HTTPS | `agent-http-intake.logs.ap2.datadoghq.com` | 443 | Used by the Agent to send logs in JSON format over HTTPS. See the [Host Agent Log collection documentation][2]. |
224-
| AP2 | HTTPS | {{< region-param key="browser_sdk_endpoint_domain" code="true" >}} | 443 | Used by the Browser SDK to send logs in JSON format over HTTPS. |
225-
226-
[1]: /api/latest/logs/#send-logs
227-
[2]: /agent/logs/#send-logs-over-https
228-
229-
{{< /site-region >}}
230-
231-
{{< site-region region="gov" >}}
232-
233-
| Site | Type | Endpoint | Port | Description |
234-
|---------|-------|---------------------------------------------------------------------------|------|--------------------------------------------------------------------------------------------------------------------------|
235-
| US1-FED | HTTPS | `http-intake.logs.ddog-gov.com` | 443 | Used by custom forwarder to send logs in JSON or plain text format over HTTPS. See the [Logs HTTP API documentation][1]. |
236-
| US1-FED | HTTPS | `lambda-http-intake.logs.ddog-gov.com` | 443 | Used by Lambda functions to send logs in raw, Syslog, or JSON format over HTTPS. |
237-
| US1-FED | HTTPS | `agent-http-intake.logs.ddog-gov.com` | 443 | Used by the Agent to send logs in JSON format over HTTPS. See the [Host Agent Log collection documentation][2]. |
238-
| US1-FED | HTTPS | `logs.`{{< region-param key="browser_sdk_endpoint_domain" code="true" >}} | 443 | Used by the Browser SDK to send logs in JSON format over HTTPS. |
239-
240-
[1]: /api/latest/logs/#send-logs
241-
[2]: /agent/logs/#send-logs-over-https
242-
243-
{{< /site-region >}}
149+
| Site | Type | Endpoint | Port | Description |
150+
|------|-------|----------|------|-------------|
151+
| {{< region-param key=dd_datacenter >}} | HTTPS | <code>{{< region-param key=http_endpoint >}}</code> | 443 | Used by custom forwarder to send logs in JSON or plain text format over HTTPS. See the [Logs HTTP API documentation][16]. |
152+
| {{< region-param key=dd_datacenter >}} | HTTPS | <code>{{< region-param key=agent_http_endpoint >}}</code> | 443 | Used by the Agent to send logs in JSON format over HTTPS. See the [Host Agent Log collection documentation][17]. |
153+
| {{< region-param key=dd_datacenter >}} | HTTPS | <code>{{< region-param key=lambda_http_endpoint >}}</code> | 443 | Used by Lambda functions to send logs in raw, Syslog, or JSON format over HTTPS. |
154+
| {{< region-param key=dd_datacenter >}} | HTTPS | <code>logs.{{< region-param key=browser_sdk_endpoint_domain >}}</code> | 443 | Used by the Browser SDK to send logs in JSON format over HTTPS. |
244155

245156
### Custom log forwarding
246157

@@ -332,4 +243,6 @@ Once logs are collected and ingested, they are available in **Log Explorer**. Lo
332243
[13]: /getting_started/site/
333244
[14]: /logs/log_configuration/pipelines/?tab=date#date-attribute
334245
[15]: /api/latest/logs/#send-logs
246+
[16]: /api/latest/logs/#send-logs
247+
[17]: /agent/logs/#send-logs-over-https
335248

content/en/logs/log_collection/csharp.md

Lines changed: 1 addition & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -383,61 +383,9 @@ Note that the delimiter is a comma and a whitespace: `, `.
383383

384384
The following configuration values should generally not be modified, but may be set if required.
385385

386-
{{< site-region region="us" >}}
387-
388-
`DD_LOGS_DIRECT_SUBMISSION_URL`
389-
: Sets the URL where logs should be submitted. Uses the domain provided in `DD_SITE` by default.<br>
390-
**Default**: `https://http-intake.logs.datadoghq.com:443` (based on `DD_SITE`)
391-
392-
{{< /site-region >}}
393-
394-
{{< site-region region="us3" >}}
395-
396-
`DD_LOGS_DIRECT_SUBMISSION_URL`
397-
: Sets the URL where logs should be submitted. Uses the domain provided in `DD_SITE` by default.<br>
398-
**Default**: `https://http-intake.logs.us3.datadoghq.com:443` (based on `DD_SITE`)
399-
400-
{{< /site-region >}}
401-
402-
{{< site-region region="us5" >}}
403-
404-
`DD_LOGS_DIRECT_SUBMISSION_URL`
405-
: Sets the URL where logs should be submitted. Uses the domain provided in `DD_SITE` by default.<br>
406-
**Default**: `https://http-intake.logs.us5.datadoghq.com:443` (based on `DD_SITE`)
407-
408-
{{< /site-region >}}
409-
410-
{{< site-region region="ap1" >}}
411-
412386
`DD_LOGS_DIRECT_SUBMISSION_URL`
413387
: Sets the URL where logs should be submitted. Uses the domain provided in `DD_SITE` by default.<br>
414-
**Default**: `https://http-intake.logs.ap1.datadoghq.com:443` (based on `DD_SITE`)
415-
416-
{{< /site-region >}}
417-
418-
{{< site-region region="ap2" >}}
419-
420-
`DD_LOGS_DIRECT_SUBMISSION_URL`
421-
: Sets the URL where logs should be submitted. Uses the domain provided in `DD_SITE` by default.<br>
422-
**Default**: `https://http-intake.logs.ap2.datadoghq.com:443` (based on `DD_SITE`)
423-
424-
{{< /site-region >}}
425-
426-
{{< site-region region="eu" >}}
427-
428-
`DD_LOGS_DIRECT_SUBMISSION_URL`
429-
: Sets the URL where logs should be submitted. Uses the domain provided in `DD_SITE` by default.<br>
430-
**Default**: `https://http-intake.logs.datadoghq.eu:443` (based on `DD_SITE`)
431-
432-
{{< /site-region >}}
433-
434-
{{< site-region region="gov" >}}
435-
436-
`DD_LOGS_DIRECT_SUBMISSION_URL`
437-
: Sets the URL where logs should be submitted. Uses the domain provided in `DD_SITE` by default.<br>
438-
**Default**: `https://http-intake.logs.ddog-gov.com:443` (based on `DD_SITE`)
439-
440-
{{< /site-region >}}
388+
**Default**: `{{< region-param key=http_endpoint_full >}}:443` (based on `DD_SITE`)
441389

442390
`DD_LOGS_DIRECT_SUBMISSION_SOURCE`
443391
: Sets the parsing rule for submitted logs. Should always be set to `csharp`, unless you have a [custom pipeline][17].<br>

0 commit comments

Comments
 (0)