-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[doc] Add encoding in log config sample #7708
Conversation
@@ -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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of directly changing the conf.yaml.example, you could modify the spec.yaml file (sqlserver/assets/configuration/spec.yaml) since we run a script to automatically generate the conf.yaml.example now. There is a template for logs (datadog_checks_dev/datadog_checks/dev/tooling/templates/configuration/logs.yaml), which you can just use and override to include the additional encoding
information.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 from docs
3f4c4e6
to
8ac88fb
Compare
8ac88fb
to
2f4185d
Compare
@@ -94,6 +94,8 @@ instances: | |||
## Set path if type is file. | |||
## Set channel_path if type is windows_event. | |||
## source - required - Attribute that defines which Integration sent the logs. | |||
## encoding - optional - For file specifies the file encoding, default is utf-8, other |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifies the encoding for the file. The default is utf-8. Other
What does this PR do?
Add the encoding option for log configuration templates.
As per https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-troubleshooting-guide?view=sql-server-ver15#access-the-log-files the log are encoded using utf-16-le by default so the default config for this integration has been updated accordingly.
Motivation
Windows support.
Additional Notes
N/A
Review checklist (to be filled by reviewers)
changelog/
andintegration/
labels attached