Group by Attributes
The Group by Attributes Processor groups logs with shared attribute values into the same resource.
The Group by Attributes Processor can be used to properly move attribute values to the resource, and also to compact telemetry data after batching.
|Attribute Keys||The attribute keys to group by, and move to the resource. When no keys are specified, resources with the same attributes are compacted into the same resource.|
Compact telemetry with the same resource
By default, the processor will compact resources that match together. Using the processor in this configuration after the batch processor can reduce the amount of data sent to some destinations.
Group into resources by an attribute
The processor may also be used to promote attributes to the resource. Here is an example of promoting the
gcp.project.id attribute on logs to the resource.