How to maintain one SessionID or UserID for AWS Lex Bot

0

Hey Folks,

I am currently working on a Lex automation that involves gathering the conversation logs from a Lex bot (V1). I notice that in my CloudWatch group, there is a log stream event created for each intent as the user interacts with the bot. The goal is to take the JSON data from each log stream and convert it into one file (I currently built and tested the code to do so). When a log stream is created in the log group, a Lambda function will be triggered to process the data. I realized a flaw; I noticed that each log stream has a different key. Within the JSON data, the SessionID and UserID tends to be different although it is one interaction. For me to be able to build this automation fully, I need to find a way to keep one of those values the same, unless there is another way to correlate the two separate log streams. Any thoughts to this?

Additional Information: I have also tried to adjust the Session Timeout time. I had it on 5 minutes and increased it to 10, this of course had no effect.

1개 답변
0

Hello,

Could you explain more on which API call you are making here that contains the different UserID and SessionID? You can also share sample JSON (while removing any sensitive information). This looks more of a limitation at the source of the logs rather than at the Log Group level. You can share more details for further insight.

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠