-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Component(s)
extension/encoding/googlecloudlogentryencoding
Is your feature request related to a problem? Please describe.
We would like to add the generic "encoding.format"
attribute now used in the AWS logs encoding extension to the Google Cloud log entry encoding extension.
Related PRs:
- https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/42899/files#diff-c237625e88cf3320c7664b82e2f71a3be7f8232a5daacab6f108f6c0634397e1R24
- [elasticsearchexporter] Support 'encoding.format' scope attribute for dataset routing #42844
Describe the solution you'd like
We would like to continue on the path of having a cloud-agnostic encoding.format
field for identifying the log type in a concise and straightforward manner.
This way, we won't need to rely on the unnecessarily long and nonstandard naming scheme in the cloud.resource_id
fields, for example.
GCP Log Type | Encoding Support | cloud.resource_id |
Proposed new encoding.format value |
---|---|---|---|
Activity Logs | in main |
one of cloudaudit.googleapis.com%2Factivity , cloudaudit.googleapis.com%2Fdata_access , cloudaudit.googleapis.com%2Fpolicy , or cloudaudit.googleapis.com%2Fsystem_event |
auditlog |
VPC Flow Logs | Anticipated - Open PR | one of networkmanagement.googleapis.com%2Fvpc_flows or compute.googleapis.com%2Fvpc_flows |
vpcflow |
Describe alternatives you've considered
Leave this up to the cloud.resource_id
, which we will continue to support, but which is not conducive to downstream consumption or cross-cloud data efforts. It also has the ugly %2F
in the string, and has a nonstandard base naming scheme (see the VPC Flow Logs row above).
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1
or me too
, to help us triage it. Learn more here.