Apache Log4j 2
Apache Log4j 2 is a Java-based logging framework. It is one of most popular logging frameworks in Java. This document explains how to use the Log4j 2 HTTP appender to send logs to Parseable.
Prerequisites
- Parseable server installed and running. See installation for more details.
- A Java project with Log4j dependency.
Setup
Edit the log4j2.xml file to add the following configuration. Please ensure to update the url, Authorization, and X-P-Stream properties with the correct values.
Once the configuration is updated, restart the application. You should start seeing logs in Parseable.