• EnglishEspañol日本語한국어Português
  • Log inStart now

Log (audit) all data your New Relic agent transmits

Every New Relic agent includes strong safeguards to ensure data security. For example, New Relic automatically encrypts sensitive information before it is transmitted. For more information about New Relic's security measures, see our security and privacy documentation, or visit the New Relic security website.

If you need to record and view information about all data your app transmits to New Relic, you can enable audit logging for short periods of time. This is useful, for example, with debugging or auditing, when you need detailed information about what exactly is being transmitted.


Be sure to disable audit logging as soon as you are finished using it. This feature causes additional overhead, which may overload the audit log file if left turned on for extended periods of time.

APM agent audit logging

For details about the audit logging options for your APM agent's configuration file, see the agent-specific documentation:


Configuration file


Logging is optional with the Go agent. If you are using newrelic.NewLogger(w) and want more detailed output, change newrelic.NewLogger(w) to newrelic.NewDebugLogger(w). For more information, see the New Relic Go logging documentation on GitHub.


Set audit_mode to true.


Set auditLog to true.


New Relic's Node.js agent does not use separate audit logs because the payload is already available in the configuration logs. To view increasing levels of detail, use your config file's logging level variables.


Use PHP newrelic.daemon.auditlog (for newrelic.ini) or auditlog (for newrelic.cfg).


Use Python audit_log_file values.


Use audit_log values. For more information, see Ruby agent audit log.

Infrastructure agent logging

You can generate infrastructure monitoring logs for troubleshooting our infrastructure agent.

New Relic account-related logging

To audit changes to your New Relic account, run NRQL queries with NrAuditEvent. To customize your query, use any of the available NrAuditEvent attributes.

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.