Hello,
I'm currently ingesting CloudWatch logs via Kinesis > Elastic Serverless Forwarder, but I'm having issues with injecting existing "root" fields after expanding events from JSON object lists. I've attached my config.yaml and sample logs.
Elastic Serverless Forwarder:
inputs:
- type: "kinesis-data-stream"
id: "arn:aws:kinesis:us-east-1::stream/ElasticRecipientStream"
expand_event_list_from_field: "logEvents"
root_fields_to_add_to_expanded_event: "all"
tags:
- "aws-serverless-kinesis"
outputs:
- type: "elasticsearch"
args:
# either elasticsearch_url or cloud_id, elasticsearch_url takes precedence
# elasticsearch_url: "http(s)://domain.tld:port"
cloud_id: "<redacted>"
# either api_key or username/password, api_key takes precedence
api_key: "<redacted>"
es_datastream_name: "logs-aws-serverless"
batch_max_actions: 500
batch_max_bytes: 10485760
ssl_assert_fingerprint: ""
Essentially my events are formatted as seen in the Elastic Serverless Forwarder documentation below. The example shows the logs without "root_fields_to_add_to_expanded_event" setting, but my logs are still missing the root fields even with this setting enabled.