Skip to content

Commit e1f4861

Browse files
committed
Adding YAML exampels and sandardizing shell usage for Dynatrace output plugin. Part of issue #1899.
Signed-off-by: Eric D. Schabell <[email protected]>
1 parent 5697311 commit e1f4861

File tree

1 file changed

+47
-17
lines changed

1 file changed

+47
-17
lines changed

pipeline/outputs/dynatrace.md

Lines changed: 47 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,53 @@ To get started with sending logs to Dynatrace:
3232
token with the `logs.ingest` (Ingest Logs) scope.
3333
1. 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

Comments
 (0)