I’m attempting to use an HTTP appender to port our logs directly into dynatrace. Running the same endpoint with the same token in postman returns the expected 204 message, and the test log appears in dynatrace. When using the same env ID and API token in the HTTP appender config, servoy throws the following error: 2025-06-12T15:35:23.154360721Z main ERROR Unable to send HTTP in appender [dynatraceAppender] java.io.IOException: 401 Unauthorized at org.apache.logging.log4j.core.appender.HttpURLConnectionManager.send(HttpURLConnectionManager.java:137) at org.apache.logging.log4j.core.appender.HttpAppender.append(HttpAppender.java:183) at org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:160) at org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:133) at org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:124) at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:88) at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:714) at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:672) at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:648) at or ...
This is my appender setup: <Http name="dynatraceAppender" url="https://{REDACTED}.live.dynatrace.com/api/v2/logs/ingest"> <Headers> <Property name="Authorization">Api-Token {REDACTED}</Property> <Property name="Content-Type">application/json; charset=utf-8</Property> </Headers> <JsonLayout compact="true" eventEol="true" /> </Http>
Any help as to why it’s throwing this error would be appriciated