Skip to content

Commit bc66f14

Browse files
Nilsolivielpeau
authored andcommitted
Add log example for Ansible configuration (#89)
1 parent de905b9 commit bc66f14

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ Example Playbooks
7171
tags: "mytag0, mytag1"
7272
log_level: INFO
7373
apm_enabled: "true" # has to be set as a string
74+
log_enabled: true # log collection is available on agent 6
7475
datadog_config_ex:
7576
trace.config:
7677
env: dev
@@ -106,6 +107,20 @@ Example Playbooks
106107
- nginx_status_url: http://example2.com:1234/nginx_status/
107108
tags:
108109
- instance:bar
110+
#Log collection is available on agent 6
111+
logs:
112+
- type: file
113+
path: /var/log/access.log
114+
service: myapp
115+
source: nginx
116+
sourcecategory: http_web_access
117+
118+
- type: file
119+
path: /var/log/error.log
120+
service: nginx
121+
source: nginx
122+
sourcecategory: http_web_access
123+
109124
```
110125

111126
```yml

0 commit comments

Comments
 (0)