Do I need to create two kinesis delivery streams to send messages under two different paths in the same s3 bucket?

0

I have a lambda function which receives logs from cloudwatch using a subscription filter and has to send them to firehose to be delivered to an s3 bucket.

The same lambda function receives two kinds of logs. These two log formats need to be written into two different paths under the same s3 destination.

For eg.

1)Log type A should be stored under - /logTypeA directory.

2)Log type B should be stored under - /logTypeB directory.

I am using cdk to create the necessary firehose and s3 setup.

Do I need to create two different delivery streams - one for log type A and one for log type B or is there a way to do this using a single delivery stream ? Didn't find anything useful in the tech docs.

Naxi
已提问 2 年前509 查看次数
1 回答
0

If you have some field whose value you can use to discriminate, you can use dynamic partitioning.

profile pictureAWS
专家
Tasio
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则