MongoDB appender

MongoDB is supported through the Java MongoDB Driver.

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.mongodb</groupId>
        <artifactId>mongo-java-driver</artifactId>
        <version>2.14.3</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.mongodb</groupId>
      <artifactId>mongo-java-driver</artifactId>
    </dependency>
  </dependencies>

Requirements

The MongoDB Appender is dependent on the Log4j 2 API and implementation. For more information, see Runtime Dependencies.