Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-3197

Support agentless logging to Datadog

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.14.1
    • None
    • Layouts
    • None

    Description

      The documentation for Datadog contains information on how to setup Log4j 2 to send logs to Datadog. However, for the agentless configuration, it says its not possible with Log4j 2 and resorts to bridging to Logback:

      https://docs.datadoghq.com/logs/log_collection/java/?tab=log4j2#agentless-logging

      The problem is that the JSON formatted log events needs to be prefixed with an API key (outside of the JSON structure). This is possible with Logback, but supposedly not with Log4j 2.

      This configuration is arguably a bit strange, but it would be good if Log4j 2 could support it, since it is likely a relevant use case.

      Attachments

        Activity

          People

            vy Volkan Yazici
            mikes Mikael Ståldal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: