Relative Content

Tag Archive for loggingmulelog4j2mulesoftdatadog

Limit API logs to Fewer Environments

I am in the process of sending my API logs from MuleSoft CloudHub to Datadog. I am able to send the logs by making the necessary changes to the application’s log4j2.xml. We have several MuleSoft environments like DEV, TEST, UAT and Prod. I don’t want to send the logs from all environments to Datadog and would like to limit to only UAT and Prod. Where can I do that filtering? Is there any specific query parameter for the datadog intake url (https://http-intake.logs.datadoghq.eu/api/v2/logs) where I can specify if the logs need to be sent for an environment or not?