Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logs config to envoy #3918

Merged
merged 1 commit into from
Jun 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions envoy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,24 @@ If you care only about the cluster name and grpc service, you would add this to

`^cluster\.<CLUSTER_NAME>\.grpc\.<GRPC_SERVICE>\.`

#### Log Collection

To enable collecting logs in the Datadog Agent, update `logs_enabled` in `datadog.yaml`:
```
logs_enabled: true
```

Next, edit `envoy.d/conf.yaml` by uncommenting the `logs` lines at the bottom. Update the logs `path` with the correct path to your Envoy log files.

```yaml
logs:
- type: file
path: /var/log/envoy.log
source: envoy
service: envoy
```


### Validation

[Run the Agent's `status` subcommand][11] and look for `envoy` under the Checks section.
Expand Down
18 changes: 18 additions & 0 deletions envoy/datadog_checks/envoy/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,21 @@ instances:
# tags:
# - <KEY_1>:<VALUE_1>
# - <KEY_2>:<VALUE_2>


## Log Section (Available for Agent >=6.0)
##
## type - mandatory - Type of log input source (tcp / udp / file / windows_event)
## port / path / channel_path - mandatory - Set port if type is tcp or udp. Set path if type is file. Set channel_path if type is windows_event
## service - mandatory - Name of the service that generated the log
## source - mandatory - Attribute that defines which Integration sent the logs
## sourcecategory - optional - Multiple value attribute. Used to refine the source attribute
## tags: - optional - Add tags to the collected logs
##
## Discover Datadog log collection: https://docs.datadoghq.com/logs/log_collection/
#
# logs:
# - type: file
# path: /var/log/envoy.log
# source: envoy
# service: envoy