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; for example, if no data appears in the New Relic UI for your app. If either log type is missing, some component of the .NET agent did not start.
- Agent logs: These file names begin with
- Profiler logs: These file names begin with
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
C:\ProgramData\New Relic\.NET Agent is in a hidden folder, update your Windows settings so that you can see it. To generate New Relic for .NET log files:
newrelic.config, usually located in
C:\ProgramData\New Relic\.NET Agent(or
%ALLUSERSPROFILE%\New Relic\.NET Agent).
- Change the
<log level="info" />setting to
<log level="debug" />.
- Save and close the file, then wait a few minutes for the agent to read the new settings.
- Generate a few minutes of traffic to your app.
- If sending your log file to New Relic Support: In your New Relic support ticket, attach the
newrelic.configfile (not the text of the file), and attach the entire
C:\ProgramData\New Relic\.NET Agent\Logsor from
%ALLUSERSPROFILE%\New Relic\.NET Agent\Logs.
<log level="debug" />to
<log level="info" />.
Kudu Console manages Microsoft Azure Web App log reporting. To use the Kudu Console, first log into Azure.
Navigate to the URL of your Azure Web app; for example:https://example.azurewebsites.net
Insert the Kudu Console URL
scmsnippet into the URL; for example:https://example.scm.azurewebsites.net
Check for the Kudu logo with a black navigation bar at the top left of the page and your Azure username at the top right of the page.
Then, to change the log level within the Kudu Console:
- From the Kudu Console navigation bar, select the Debug console menu, then select either CMD or PowerShell.
- Navigate to
- To edit
newrelic.config, select the pencil icon.
- Save the change to
- Wait a few minutes for the debug logs to be generated.
- Use the same steps to switch the
log levelback to
In addition to agent logs, a Microsoft System Information file is also useful for troubleshooting:
- From the Windows task bar, select Start > Run and enter
msinfo32. Select OK.
- After the system information page loads, select File > Save.
- Wait a few minutes for the server to save the file.
- Attach the file to your New Relic support ticket.
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 by environment, so you will need to work with your system administrator to verify that this is not an issue.