Generating logs for troubleshooting (PHP)

Problem

You encounter problems with your New Relic for PHP installation but are not sure what is the cause.

Solution

Monitoring your New Relic logs may help diagnose the problem. The New Relic PHP agent and daemon have their own logs. To monitor the logs:

  1. Check both logs for content:
  2. Set the log level for each to verbosedebug for more information:
  3. Restart your app.
  4. Collect 5 to 10 minutes of log time with your log level set to verbosedebug.

  5. Examine your logs and use the information to diagnose the problem.
  6. When you are finished troubleshooting, reset the logs' levels. Do not keep them at verbosedebug.

Watch the size of your log files. Depending on your application, they can grow very quickly.

For more help

Additional documentation resources include PHP Agent Troubleshooting (individual topics describing common problems, causes, and solutions for your PHP agent installation).

Join the discussion about PHP 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 support.newrelic.com.