Reputation: 12447
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.
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
Reputation: 698
Logs being captured by the New Relic Java agent do not prevent them from going to other destinations.
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