@@ -32,23 +32,53 @@ To get started with sending logs to Dynatrace:
3232 token with the ` logs.ingest ` (Ingest Logs) scope.
33331 . Determine your Dynatrace
3434 [ environment ID] ( https://docs.dynatrace.com/docs/shortlink/monitoring-environment#environment-id ) .
35- 1 . In your main Fluent Bit configuration file, append the following ` Output ` section:
36-
37- ``` text
38- [OUTPUT]
39- name http
40- match *
41- header Content-Type application/json; charset=utf-8
42- header Authorization Api-Token {your-API-token-here}
43- allow_duplicated_headers false
44- host {your-environment-id}.live.dynatrace.com
45- Port 443
46- URI /api/v2/logs/ingest
47- Format json
48- json_date_format iso8601
49- json_date_key timestamp
50- tls On
51- tls.verify On
35+ 1 . In your main Fluent Bit configuration file, append the following ` Output ` section:
36+
37+ {% tabs %}
38+ {% tab title="fluent-bit.yaml" %}
39+
40+ ``` yaml
41+ pipeline :
42+
43+ outputs :
44+ - name : http
45+ match : ' *'
46+ header :
47+ - ' Content-Type application/json; charset=utf-8'
48+ - ' Authorization Api-Token {your-API-token-here}'
49+ allow_duplicated_headers : false
50+ host : {your-environment-id}.live.dynatrace.com
51+ port : 443
52+ uri : /api/v2/logs/ingest
53+ format : json
54+ json_date_format : iso8601
55+ json_date_key : timestamp
56+ tls : on
57+ tls.verify : on
58+ ` ` `
59+
60+ {% endtab %}
61+ {% tab title="fluent-bit.conf" %}
62+
63+ ` ` ` text
64+ [OUTPUT]
65+ name http
66+ match *
67+ header Content-Type application/json; charset=utf-8
68+ header Authorization Api-Token {your-API-token-here}
69+ allow_duplicated_headers false
70+ host {your-environment-id}.live.dynatrace.com
71+ Port 443
72+ URI /api/v2/logs/ingest
73+ Format json
74+ json_date_format iso8601
75+ json_date_key timestamp
76+ tls On
77+ tls.verify On
78+ ```
79+
80+ {% endtab %}
81+ {% endtabs %}
5282
5383# # References
5484
0 commit comments