Skip to content

Commit

Permalink
update env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
agardnerIT committed Aug 27, 2024
1 parent 62501ef commit 36c955d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
7 changes: 2 additions & 5 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,10 @@

// Add recommended secrets
"secrets": {
"DT_ENV": {
"DT_ENV_SYSLOG": {
"description": "https://abc12345.live.dynatrace.com (without trailing slash)"
},
"DT_ENV_NAME": {
"description": "`abc12345` from `https://abc12345.live.apps.dynatrace.com`"
},
"DT_API_TOKEN": {
"DT_API_TOKEN_SYSLOG": {
"description": "A Dynatrace access token with these permissions: `logs.ingest`"
},
"TZ": {
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* TODO: Architecture diagram
* TODO: Documentation
* TODO: Friendly startup image / link
* TODO: Startup pings

* Format DT URL
* Create API token with `logs.ingest` permissions
Expand All @@ -20,5 +21,5 @@
* Explain how Python uses sample_log_lines.log to seend and randomly generate data

```
python syslog_generator.py --host 127.0.0.1 --port 54526 --file sample_log_lines.log --count 1
```
6 changes: 3 additions & 3 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ receivers:
udp:
listen_address: "127.0.0.1:54526"
protocol: rfc3164
location: ${env:TZ}
location: "${env:TZ}"

exporters:
debug:
verbosity: detailed
otlphttp:
endpoint: "${env:DT_ENDPOINT}/api/v2/otlp"
endpoint: "${env:DT_ENDPOINT_SYSLOG}/api/v2/otlp"
headers:
Authorization: "Api-Token ${env:DT_API_TOKEN}"
Authorization: "Api-Token ${env:DT_API_TOKEN_SYSLOG}"

service:
pipelines:
Expand Down

0 comments on commit 36c955d

Please sign in to comment.