How to log REST HTTP request sent

I’m trying to troubleshot a REST outbound Connector. I would like to see the actual HTTP request sent by the connector during a process execution.

How to do that?

Camunda 8 doesn’t show the outgoing request in Operate by default, so you need to pick one of these approaches, depending on your setup.

1. Turn on debug logging for the connector runtime (most direct)

The REST connector uses Apache HttpClient / the Camunda HTTP client internally. Raise the log level for the runtime that executes your connector (the Connector Runtime / connectors-bundle, or your own Spring Boot app using the connector SDK).

With the bundle or a Spring Boot runtime, set environment variables or application.properties:

logging.level.io.camunda.connector=DEBUG
logging.level.io.camunda.connector.http=TRACE
logging.level.org.apache.hc.client5.http.wire=DEBUG
logging.level.org.apache.hc.client5.http.headers=DEBUG

As env vars (Docker / Kubernetes):

LOGGING_LEVEL_IO_CAMUNDA_CONNECTOR=DEBUG
LOGGING_LEVEL_ORG_APACHE_HC_CLIENT5_HTTP_WIRE=DEBUG
LOGGING_LEVEL_ORG_APACHE_HC_CLIENT5_HTTP_HEADERS=DEBUG

The wire logger prints the full request and response bodies, and headers prints the request line and headers. Keep in mind that this will also log secrets, such as Authorization headers, so use it only in non-production environments.

2. Point the connector at a request inspector (works on SaaS too)

If you can’t change the runtime’s logging (for example on Camunda SaaS), temporarily change the URL in the connector to a request-capturing service such as:

  • webhook.site

  • requestbin-style tools

  • a local mock like mockbin, WireMock, or nc -l 8080 / python -m http.server (only if the runtime can reach it)

You’ll see the exact method, URL, headers, query params and body. Note that FEEL expressions are already evaluated at that point, so you see the real values.

Logging the actual HTTP request sent by the REST outbound connector can be achieved by adjusting the connector runtime log levels or pointing to a request inspector tool. I found the following relevant resources:

Does this help? If not, can anyone from the community jump in? :waving_hand:


:light_bulb: Hints: Use the Ask AI feature in Camunda’s documentation to chat with AI and get fast help. Report bugs and features in Camuda’s GitHub issue tracker. Trust the process. :robot: