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

Why no custom log agent collector for app service? #92

Open
litan1106 opened this issue Nov 12, 2021 · 3 comments
Open

Why no custom log agent collector for app service? #92

litan1106 opened this issue Nov 12, 2021 · 3 comments
Labels
lang:dotnet Relates to the .NET Azure App Service Extension

Comments

@litan1106
Copy link

Why no custom log agent collector for app service? We were forced to use agentless method. https://docs.datadoghq.com/logs/log_collection/csharp/?tab=serilog#agentless-logging

It would be great to included the log agent into the App Service Extension as well. (where we can use environment variables to enable the log agent and customize the log path.)

example:

  • DD_LOG_ENABLED: "true",
  • DD_LOG_PATH: "D:\Home\LogFiles\myapp\web-.log" # Log path wildcard
@colin-higgins
Copy link
Member

Hi @litan1106 thanks for the report.
No code change log collection is coming to the app service extension soon.
This is currently in progress. I'll update you here as soon as it is available.

@colin-higgins colin-higgins added the lang:dotnet Relates to the .NET Azure App Service Extension label Nov 12, 2021
@colin-higgins
Copy link
Member

This will be in the next release: DataDog/dd-trace-dotnet#2240

@asalvo
Copy link

asalvo commented Jan 25, 2022

@colin-higgins Does this also mean that other logging providers such as NLog would now work with Azure App Services? If so is there an ETA on the release. We are currently in the middle of the 14 day trial and getting better support for NLog on Azure App Services would be a huge help for us.

https://docs.datadoghq.com/serverless/azure_app_services/?tab=net

This currently says that only serilog is supported.

"Sending logs from your application in Azure App Service to Datadog requires the use of Serilog. Submitting logs with this method allows for trace ID injection, which makes it possible to connect logs and traces in Datadog. To enable trace ID injection with the extension, add the application setting DD_LOGS_INJECTION:true."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang:dotnet Relates to the .NET Azure App Service Extension
Projects
None yet
Development

No branches or pull requests

3 participants