Amazon CloudWatch Logs launches the ability to transform and enrich logs

Amazon CloudWatch Logs launches the ability to transform and enrich logs

Unfortunately it’s very limited: they sharply restrict the grok pattern mode (128 characters, 5 wildcards) so even something like an Apache log can only be partially parsed.

how much $ though

Did you even read the post?

and included with existing Standard log class ingestion price. Logs Store (Archival) costs will be based on log size after transformation, which may exceed the original log volume.

I’m hoping there is expansion with this lined up for future, possibly an initial get it out the door release with more to come.

This could be incredibly useful for many things I’d like to do currently without having to get the dev team to redo how they handle logging entirely :smiley:

I’ve filed enhancement requests, but they always want to hear from more customers.

Have they implemented the ability to download an entire log yet? Crazy that it’s been nearly 10 years since people started asking for that feature, and you can still only download 10,000 entries at a time, unless you resort to 3rd party tools.

The frustrating thing is the docs. They tell you about the %{type:key} syntax only in an example but that is about the extent of them. I still can’t tell whether you can parse multiple formats in the log.

For example, my CloudFront Function logs look like this:

RequestId START DistributionId: XXXXXXXX
RequestId {json I emit}
RequestId END

It doesn’t seem like parentheses and or syntax works so I can’t do it with 1 grok. i.e. %{DATA: RequestId} (START DistributionId: %{DATA:DistributionId}|END|{GREEDY DATA:json})
If I have a grok line per different log type that doesn’t work.
If I just have a grok for the json line, it works but the json processor emits errors on the non-json lines.

CloudWatch is able to parse the different Lambda log line formats so I know they can support multiple line formats, but can’t tell whether that is exposed via this feature.

Thanks for the request. I’ve passed along your concerns internally for review. Feel free to share any other concerns or requests you have with us here, or you can use these options to get feedback or feature request directly to our Service teams: http://go.aws/feedback.

- Brian D.