Open
Description
Component(s)
extension/encoding/awslogsencoding
Is your feature request related to a problem? Please describe.
Currently, the user needs to specify the format of the log type, like this:
extensions:
awslogs_encoding/cloudwatch:
format: cloudwatch_logs_subscription_filter
It would be useful it this would not be necessary, and the extension could automate this part.
The format should still be support in case the extension needs to accept a more strict format.
Describe the solution you'd like
We would define the configuration like this:
extensions:
awslogs_encoding/cloudwatch:
format: auto
Then, once the extension gets a log to unmarshal, it should auto-detect the type.
Describe alternatives you've considered
N/A
Additional context
Currently we accept the following formats:
- Cloudwatch subscription filter format - JSON format
- S3 access log: plain text
- VPC flow log: compressed or parquet (parquet yet to be implemented)