Can you attach multiple log groups to the same lambda used for Cloudwatch Log Group to Opensearch subscriptions.

0

Hi,

I've used the subscription -> Create -> Create Amazon OpenSearch Service subscription filter. I had a single log group working via this and can see the data in opensearch.

I have now updated another cloudwatch log group to use the amazon opensearch service subscription filter. This apparently uses the same lambda that is created from the first log group filter. but i dont see any new data in opensearch. If i filter out the logs from the first, its empty.

Is it possible to have multiple cloudwatch log groups use the built in option? Or should we look at copying the lambda function it creates and just doing a lambda filter instead of opensearch?

2 Antworten
0

Yes, you can have multiple CloudWatch Log Groups streaming data to Amazon OpenSearch Service (or its successor, Amazon Elasticsearch Service) using a single Lambda function. Each Log Group can have its own subscription filter, and they can all point to the same Lambda function.

Regards, Andrii

profile picture
EXPERTE
beantwortet vor 7 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
0

Any idea why mine isnt populating then?

First log group subscription works, but second i get no data. Ive just created a new lambda function and pointed it at, and straight away the logs go into opensearch.

oc
beantwortet vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen