Skip to content

Commit f4687db

Browse files
Update pipeline/outputs/dynatrace.md
Co-authored-by: Craig Norris <[email protected]> Signed-off-by: hans-lougas-dt <[email protected]>
1 parent 8ad8c73 commit f4687db

File tree

1 file changed

+25
-28
lines changed

1 file changed

+25
-28
lines changed

pipeline/outputs/dynatrace.md

Lines changed: 25 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -24,34 +24,31 @@ Before starting you need to get a [Dynatrace API](https://docs.dynatrace.com/doc
2424
| `tls` | Specify to use TLS. | `on` |
2525
| `tls.verify` | TLS verification. | `on` |
2626

27-
## Getting Started
28-
29-
1. Get a [Dynatrace API](https://docs.dynatrace.com/docs/shortlink/api-authentication) token with the `logs.ingest` (Ingest Logs) scope.
30-
2. Determine your Dynatrace [environment ID](https://docs.dynatrace.com/docs/shortlink/monitoring-environment#environment-id).
31-
3. In your main Fluent Bit configuration file, append the following _Output_ section:
32-
33-
```text
34-
[OUTPUT]
35-
name http
36-
match *
37-
header Content-Type application/json; charset=utf-8
38-
header Authorization Api-Token {your-API-token-here}
39-
allow_duplicated_headers false
40-
host {your-environment-id}.live.dynatrace.com
41-
Port 443
42-
URI /api/v2/logs/ingest
43-
Format json
44-
json_date_format iso8601
45-
json_date_key timestamp
46-
tls On
47-
tls.verify On
48-
```
49-
50-
4. Once the configuration is applied and new logs are appended, verify their receipt within Dynatrace. This can be done using Dynatrace [Notebooks](https://docs.dynatrace.com/docs/observe-and-explore/dashboards-and-notebooks/notebooks) with a Dynatrace Query Language query, for example:
51-
52-
```
53-
fetch logs
54-
```
27+
## Getting started
28+
29+
To get started with sending logs to Dynatrace:
30+
31+
1. Get a [Dynatrace API](https://docs.dynatrace.com/docs/shortlink/api-authentication)
32+
token with the `logs.ingest` (Ingest Logs) scope.
33+
1. Determine your Dynatrace
34+
[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
5552
5653
## References
5754

0 commit comments

Comments
 (0)