Generate logs for troubleshooting (.NET)

New Relic's .NET agent stores two types of log files in the Logs directory at %ALLUSERSPROFILE%\New Relic\.NET Agent\Logs. Both are needed for troubleshooting. If either log type is missing, some component of the .NET agent did not start.

  • Agent logs: These filenames begin with newrelic_agent_.
  • Profiler logs: These filenames begin with NewRelic.Profiler.

Generate log files

When troubleshooting your New Relic .NET agent, ensure it has been configured to generate debug level log files, and monitor the size of your log file closely. Logging at debug generates a lot of data very quickly. After reproducing your problem, return the log level to info.

To generate New Relic for .NET log files:

  1. Open newrelic.config, usually located in C:\ProgramData\New Relic\.NET Agent (or %ALLUSERSPROFILE%\New Relic\.NET Agent).
  2. Change the <log level="info" /> setting to <log level="debug" />.
  3. Save and close the file, and then wait a few minutes for the agent to read the new settings.
  4. Generate a few minutes of traffic to your app.
  5. If sending your log file to New Relic Support: In your New Relic support ticket, attach the newrelic.config file (not the text of the file) and attach the entire Logs folder from C:\ProgramData\New Relic\.NET Agent\Logs or from %ALLUSERSPROFILE%\New Relic\.NET Agent\Logs.
  6. In newrelic.config, change <log level="debug" /> to <log level="info" />.

Generate Azure Web App log files

Kudu Console manages Azure Web App log reporting. To use the Kudu Console, first log into Azure.

  1. Navigate to the URL of your Azure Web app; for example,
  2. Insert the Kudu Console URL scmsnippet into the URL; for example,

You should see a Kudu logo at the top left of the page with a black navigation bar and your Azure username at the upper right corner of the page.

To change the log level within the Kudu Console:

  1. On the navigation bar, select the Debug console menu and then select either CMD or PowerShell.
  2. Navigate to D:\home\site\wwwroot\newrelic.
  3. To edit newrelic.config, select the pencil icon.
  4. Change <log level="info"> to <log level="debug">
  5. Save the change to newrelic.config.
  6. Wait a few minutes for the debug logs to be generated.
  7. Use the same steps to switch the log level back to info.

Collect system information

In addition to agent logs, a Microsoft System Information file is also useful for troubleshooting:

  1. From the Windows taskbar, select Start > Run and enter msinfo32. Select OK.
  2. After the System Information page loads, select File > Save, and save the file.
  3. Wait a few minutes for the server to save the file.
  4. Attach the file to your New Relic support ticket.

Check permissions

Sometimes the .NET agent will start but not be able to write to its logs because it does not have the necessary permissions to create the log directory and log files. Permissions management varies greatly by environment, so you will need to work with your system administrator to verify that this is not an issue.

For more help

Additional documentation resources include:

Join the discussion about .NET monitoring in the New Relic Online Technical Community! The Technical Community is a public platform to discuss and troubleshoot your New Relic toolset.

If you need additional help, get support at