John Little
John Little

Reputation: 12447

New Relic logging, does it affect existing (logback) logging?

Our Java Spring Boot web app runs in AWS. We want to use New Relic to monitor the API endpoints and their timings. We don't want anything else, as we cant afford it. AWS sends our logs to our self install of ELK.

We notice by default it's taking the logs into New Relic.

  1. does logs being taken into New Relic stop logs being taken into New Relic, or can they go to both?
  2. currently, we see that all the debug logs are going into NR, even though log_level: info is set in the newrelic.yml. How then could we limit just ERROR level lots to be sent to New Relic (assuming they are also sent to ELK which we don't know yet).

Upvotes: 0

Views: 62

Answers (1)

André Onuki
André Onuki

Reputation: 698

  1. Logs being captured by the New Relic Java agent do not prevent them from going to other destinations.

  2. The log_level configuration option changes the level at which the agent logs. If you meant application_logging.forwarding.log_level, it does not work (yet) with the Java agent.

You can disable the log forwarding feature by setting application_logging.enabled to false (docs).

Upvotes: 1

Related Questions