Skip to main content

Sumologic Processor

Status Available in: contrib Maintainers: @rnishtala-sumo, @pankaj101A, @jagan2221 Source: opentelemetry-collector-contrib

Supported Telemetry

Logs Metrics Traces

Overview

The Sumo Logic processor (config name: sumologic) modifies the metadata on logs, metrics and traces sent to Sumo Logic so that the Sumo Logic apps can make full use of the ingested data.

Configuration

Features

Adding cloud.namespace resource attribute

Some of the apps in Sumo Logic require the cloud.namespace attribute to be set to better understand the data coming from AWS EC2, AWS ECS and AWS Elastic Beanstalk. This attribute is similar to the standard OpenTelemetry attribute cloud.provider. In the future, the Sumo Logic apps might switch to the standard cloud.provider attribute. Before this happens, the following mapping defines the relationship between cloud.provider and cloud.namespace values: When this processor’s add_cloud_namespace setting is set to true, the processor looks for the above mentioned cloud.platform resource attribute values and if found, adds the corresponding cloud.namespace resource attribute. If the cloud.platform resource attribute is not found or has a value that is not in the table, nothing is added.

Attribute translation

Attribute translation changes some of the attribute keys from OpenTelemetry convention to Sumo Logic convention. For example, OpenTelemetry convention for the attribute containing Kubernetes pod name is k8s.pod.name, but Sumo Logic expects it to be in attribute named pod. If attribute with target name eg. pod already exists, translation is not being done for corresponding attribute (k8s.pod.name in this example). This feature is turned on by default. To turn it off, set the translate_attributes configuration option to false. Note that this may cause some of Sumo Logic apps, built-in dashboards to not work correctly. Note: the attributes are not translated for traces. Below is a list of all attribute keys that are being translated.

Nesting attributes

Nesting attributes allows to change the structure of attributes (both resource level and record level attributes) basing on their keys by nesting attributes with common paths into maps. Common path is defined as a common prefix that consists of strings separated by a given separator string (by default a dot - .) and end with that separator, for example: if the separator is ., then xyz is a common prefix path for xyz.abc.qwe and xyz.foo, but sumo is not a prefix path for neither sumologic.foo.baz nor sumologic.bar.baz.

Example

The following set of attributes:
Should be translated into such set:

Allowlist and denylist

Properties include and exclude in the config allow to define list of prefixes that are allowed or not allowed to be nested. For example, with the following config:
and following input:
The output is:

Known issues

This feature has undefined behavior when in input there are various keys that will be mapped to the same nested structure. For example, given the following attributes:
It is not possible to predict, what will be the result. It will have the following structure:
However, it is not possible to know beforehand if the value under key c will be equal to d or e. Refer to GitHube issue for details and discussion.

Aggregating attributes

Aggregating attributes allows to map attributes with keys with given prefixes to a common key. For example, it is possible to map all attributes with keys with prefixes pod_ to a key pods. The names in resulting maps are the original key names with trimmed prefix. For given input, mapping keys with prefixes pod_ to a key pods:
The result is:

Severity Attribute

Some fields that log entries consist of are not displayed as fields in Sumo Logic out of the box. It’s possible to convert specific attributes to fields. List of currently supported attributes is below: severity_number severity_text span_id trace_id In order to report one of them as field, following configuration is needed (below example for severity_number):
In this case severity_number from log record will be visible in sumo backend as a field named “loglevel”.

Configuration

Example Configuration


Last generated: 2026-08-24