Log4j 2 Error Monitoring

Debug Log4j 2 apps and prevent crashes across your entire stack with Sentry. Improve your Log4j 2 monitoring workflow with a full view of releases so you can triage errors and prioritize live issues.

Getting Started is Simple

Grab the Sentry Java SDK:

Click to Copy
<dependency> <groupId>io.sentry</groupId> <artifactId>sentry-log4j2</artifactId> <version>7.18.1</version> </dependency>

Configure your DSN:

Click to Copy
<?xml version="1.0" encoding="UTF-8"?> <Configuration status="warn" packages="org.apache.logging.log4j.core,io.sentry.log4j2"> <Appenders> <Console name="Console" target="SYSTEM_OUT"> <PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/> </Console> <Sentry name="Sentry" dsn="https://<key>@sentry.io/<project>" /> </Appenders> <Loggers> <Root level="info"> <AppenderRef ref="Sentry"/> <AppenderRef ref="Console"/> </Root> </Loggers> </Configuration>

Check our documentation for the latest instructions.

See all platforms

More than 100K Organizations Trust Sentry with Their Application Monitoring

$<!-- -->Github<!-- --> logo
$<!-- -->Atlassian<!-- --> logo
$<!-- -->Disney<!-- --> logo
$<!-- -->Cloudflare<!-- --> logo
$<!-- -->Microsoft<!-- --> logo
$<!-- -->Lush<!-- --> logo

Log4j 2 Error Monitoring with Complete Stack Traces

See details like filename and line number so you never have to guess. Filter and group Log4j 2 exceptions intuitively to eliminate noise. Monitor errors at scale without impacting throughput in production.

Fill In the Blanks About Log4j 2 Errors

Expose the important events that led to each Java exception: debug logs, network requests, database queries, past errors.

Resolve Log4j 2 Errors With Max Efficiency, Not Max Effort

Learn in which version a bug first appeared, merge duplicates, and know if things regress in a future release. Add commit data to automatically suggest an owner of each Log4j 2 error and instantly send deploy emails.

Sentry character illustration

Resolve errors with max efficiency, not max effort

  • Improve workflow with a full view of releases so you can mark errors as resolved and prioritize live issues.
  • Learn in which version a bug first appeared, merge duplicates, and know if things regress in a future release.
  • Add commit data to automatically suggest an owner of each error and instantly send deploy emails.
Manage releases with Sentry

”Sentry's high-quality tooling helps Disney+ maintain high-quality service to its tens of millions of global subscribers.”

Andrew Hay
Director of Engineering at Disney Streaming Services

Is your data secure? You better believe it.

Just look at all the high-quality security features all accounts get, regardless of plan.

  • Two-Factor Auth
  • Single Sign-On support
  • Organization audit log
  • SOC 2 Type II and ISO 27001 certified
  • HIPAA attestation
Learn more about security
  • PII data scrubbing
  • SSL encryption
  • Data Processing Addendum (includes latest EU SCCs)
  • Privacy Shield certified
Learn more about privacy

See the Full Picture of Any Log4j 2 Exception

Triage quickly based on specific parameters like HTTP request, workflow stage, and hostname for each issue.

Set custom tags to recreate the error environment relevant to your app, business, and users.

Find answers to key questions: What version of JVM was the application running? In which app release did the Java bug occur?

FAQs

Traditional logging provides you with a trail of events. Some of those events are errors, but many times they’re simply informational. Sentry is fundamentally different because we focus on exceptions, or in other words, we capture application crashes. We discuss in more detail here and on our blog.

When Spring Boot is configured to generate Git information every event triggered by Sentry will have a release field set to the current Git commit ID that will enable Monitor Release Health Sentry feature. More details here.

You can get started for free. Pricing depends on the number of monthly events, transactions, and attachments that you send Sentry. For more details, visit our pricing page.

Supporting Resources

Verifying Large Refactors in Production with Sentry

Improve your 99% latency with 1% effort.
Try Sentry’s Java monitoring today.

© 2024 • Sentry is a registered Trademark of Functional Software, Inc.