In today's fast-paced development environment, incidents can strike without a moment's notice. Oftentimes developers may not have the necessary data at their disposal to properly troubleshoot and debug the situation. To address this, New Relic is rolling out an enhancement to our existing server-side configuration (SSC), allowing Java developers to easily control when and how they send application logging data without needing to make manual code changes and pull requests (PRs). Now, Java developers can easily turn on application performance monitoring (APM) logging directly through the UI to access logs when needed
Introducing one-click APM logging install for Java
We’re excited to announce that New Relic now extends the ability to turn on and off APM logging for Java directly from the UI. With New Relic one-click APM log forwarding, you get:
- Easy activation: Users with appropriate access can turn on APM log forwarding for Java services (v7.6.0 or higher) directly from the APM UI.
- Flexible controls: Leverage existing SSC controls to toggle APM logging on or off as needed.
- Enhanced customization: Improved SSC controls allow users to opt-in or opt-out of managing individual configurations, providing more flexibility of this existing functionality.
Why choose New Relic APM logging
Modern application debugging requires more than just error messages—it demands context. The New Relic APM logging solution provides developers with the tools they need to quickly identify and resolve issues in their Java applications. Here's why our approach stands out:
- Real-time debugging capabilities: Access logs with full transaction context exactly when you need them, enabling faster root cause analysis during critical incidents.
- Logs in context: Go from application logs to distributed traces to transaction data all in context of each other.
- Zero code changes required: Enable logging without deploying new code or waiting for PR approvals, significantly reducing time-to-resolution during incidents.
Getting started with one-click APM logging
Implementing New Relic one-click APM logging is straightforward. To begin using this feature, ensure your environment meets these simple requirements:
- Java services running version 7.6.0 or higher.
- Account-level logging enabled.
- Local configuration through the newrelic.js file; incompatible with environment variables.
- Works to turn on logs when they are turned off in the local configuration file.
- Admin privileges to turn on logging.
If these prerequisites are met, follow these steps:
Step 1: From the APM list, select your service.
Step 2: In the secondary left-hand navigation, under Settings, select Application.
Step 3: Turn on the main Server Side Configuration (SSC) toggle.
Step 4: Next to Application Log Forwarding, select the ON radio option.
Step 5: Under the Application Log Forwarding section, select the radio option for ON
Step 6: Select Save and logs should appear within a couple minutes.
Real-world impact
The ability to instantly enable logging during an incident can dramatically improve mean time to resolution (MTTR). Consider this common scenario: Your team receives an alert about increased error rates in your payment processing service. Instead of scrambling to deploy logging changes through your CI/CD pipeline, your on-call engineer can now enable detailed logging with a single click, immediately gaining visibility into the issue.
Looking ahead
This enhancement to our Java APM logging capabilities is just the beginning. We're committed to continuously improving our Intelligent Observability Platform to make debugging and monitoring more efficient for development teams. Stay tuned for more updates as we expand these capabilities to additional languages and services.
To take advantage of this new function, users just need to go to their APM service and turn on logging through the UI.
The views expressed on this blog are those of the author and do not necessarily reflect the views of New Relic. Any solutions offered by the author are environment-specific and not part of the commercial solutions or support offered by New Relic. Please join us exclusively at the Explorers Hub (discuss.newrelic.com) for questions and support related to this blog post. This blog may contain links to content on third-party sites. By providing such links, New Relic does not adopt, guarantee, approve or endorse the information, views or products available on such sites.