26-08-2022, 11:13 AM
(26-08-2022, 07:41 AM)Jyotheesh_K Wrote: 1.We have TransactionID header coming in the request and it needs to be logged in cloud watch. Could you please guide me to achieve this use case.
2.We have a requirement to capture the time taken by APIGW for the transaction. could you please assist me in achieving this use case.
As mentioned in the forum posting guildelines, you will have to tell us what all has already been setup/tried by you to achieve this as it involves multiple steps including specifying the right $context variables, log formats, log groups etc. Also, without any information on the request template format that is coming through to API GW or whether it's an HTTP or REST request, it's impossible to say how to log it. Please provide the details on what's already setup.
For HTTP requests, there are the variables that can be logged to cloudwatch: https://docs.aws.amazon.com/apigateway/l...ables.html