Getting started Community Training Tutorials Documentation APIs, AI & Tools
Host
Managed Omni Gateway generates runtime logs and access logs. By default, Managed Omni Gateway forwards these logs to Anypoint Platform, where you can view them in Runtime Manager and Anypoint Monitoring.
You can also export logs to third-party observability services, such as New Relic, Splunk, or any OpenTelemetry-compliant tool. Managed Omni Gateway sends logs directly to each external output that you configure by using the OpenTelemetry Protocol (OTLP) over HTTP or gRPC. Exporting logs enables you to correlate Omni Gateway logs with data from other systems and keep logs in the tools your teams already use.
You can export logs to one or more external outputs. For each output, choose whether to send access logs, runtime logs, or both. Exporting logs to external outputs doesn’t affect forwarding logs to Anypoint Platform.
You can export logs and distributed traces to the same service. Logs and traces are configured separately, so to export both, configure log export on the Logging tab and trace export on the Tracing tab. See Configuring and Exporting Distributed Tracing for Managed Omni Gateway.
Runtime logs include:
The startup and shutdown of Omni Gateway and its components
Deployed APIs and policies
Possible misconfigurations of Omni Gateway or other errors
Access logs describe incoming requests and responses for specific APIs. To generate access logs, apply a Message Logging policy to the API instances whose request and response data you want to log. See Configuring Message Logging for Managed Omni Gateway.
In Anypoint Platform, select Runtime Manager.
Select Omni Gateways.
Select your Omni Gateway.
Open Runtime Configurations.
Open Logging.
Under Anypoint Logging, turn Forward logs to Anypoint on or off.
When this setting is off, logs aren’t available in Anypoint Monitoring.
To export logs to a third-party service, under External Outputs, click Add, and then configure the output:
For Type, select OpenTelemetry.
Under Parameters, configure the connection to your OpenTelemetry endpoint. See OpenTelemetry Output Parameters.
To add more outputs, click Add and repeat these steps.
Under Access Logs, turn on each output that receives access logs.
Under Runtime Logs, turn on each output that receives runtime logs.
For Log Level, select the minimum severity level of runtime logs to include. See Runtime Log Levels.
Click Apply changes.
To stop exporting logs to an output, click the delete icon for the output, and then click Apply changes.
| Parameter | Required | Default Value | Description |
|---|---|---|---|
Host |
Yes |
N/A |
Hostname of the OpenTelemetry endpoint, for example, |
Port |
Yes |
N/A |
Port of the OpenTelemetry endpoint, for example, |
TLS |
Yes |
On |
Enables or disables TLS for this output. |
TLS Verify |
Yes |
On |
Enables or disables TLS certificate validation. Applies only when TLS is On. |
gRPC |
No |
Off |
Uses OTLP/gRPC over HTTP/2 instead of OTLP/HTTP. Turning on this option also enables HTTP/2. |
Compress |
No |
N/A |
Payload compression mechanism for OTLP/HTTP. Supported values are Gzip and Zstd. |
Batch Size |
No |
1000 |
Maximum number of log records to send at a time. |
Headers |
No |
N/A |
Custom headers to add to requests sent to the OpenTelemetry endpoint, such as an API key for authentication. Click Add to add a header name and value. |
Add Label |
No |
N/A |
Custom labels to add to exported logs. Click Add to add a label name and value. |
Logs URI |
No |
N/A |
Path of the logs endpoint. Overrides the default path. |
Net Connect Timeout (seconds) |
No |
10 |
Maximum time to establish a connection, including the TLS handshake. |
Net IO Timeout (seconds) |
No |
0 |
Maximum time that a connection can stay idle while assigned. A value of |
Output entry name |
No |
Output |
Name for this output. The name identifies the output in the Access Logs and Runtime Logs sections, for example, Output - OpenTelemetry. |
The Log Level setting includes runtime logs of the selected severity level and higher. For example, if you select Warning, Managed Omni Gateway exports warning, error, and fatal messages.
| Log Level | Description |
|---|---|
Debug |
Debugging messages. |
Info |
Informative messages. |
Warning |
Warning messages. |
Error |
Error messages, such as when an exception occurs. |
Fatal |
Fatal messages, such as when an application fails. |