Skip to content

Commit

Permalink
[sqlserver/doc] Add encoding in log config sample
Browse files Browse the repository at this point in the history
  • Loading branch information
prognant committed Oct 2, 2020
1 parent 5fa2a4f commit 3f4c4e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions sqlserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ _Available for Agent versions >6.0_
```yaml
logs:
- type: file
encoding: utf-16-le
path: "<LOG_FILE_PATH>"
source: sqlserver
service: "<SERVICE_NAME>"
Expand Down
2 changes: 2 additions & 0 deletions sqlserver/datadog_checks/sqlserver/data/conf.yaml.example
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ instances:
## Set channel_path if type is windows_event.
## source - required - Attribute that defines which Integration sent the logs.
## service - optional - The name of the service that generates the log.
## encoding - optional - Set the file encoding, SQL Server error log uses utf-16-le.
## Overrides any `service` defined in the `init_config` section.
## tags - optional - Add tags to the collected logs.
##
Expand All @@ -128,6 +129,7 @@ instances:
# logs:
# - type: file
# path: /var/opt/mssql/log/errorlog
# encoding: utf-16-le
# source: sqlserver
# service: <SERVICE_NAME>
# log_processing_rules:
Expand Down

0 comments on commit 3f4c4e6

Please sign in to comment.