which services used to implement log user events

0

hi, in my app, I want to log user's behaviors, like buy something, complete a mission, ...etc. I need to store that logs and later query to get some data like within period of 12/2/2023->12/3/2023, list all buy events. How do I store and query like that?

nam
已提問 10 個月前檢視次數 245 次
1 個回答
0

Hello @nam,

This depends on the type of logs you are storing and querying.

For example, if you are pushing to cloudwatch logs, you can use the AWS CloudWatch logs for querying: https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CWL_QuerySyntax-examples.html

You can also use Athena connector to Cloudwatch: https://docs.aws.amazon.com/athena/latest/ug/connectors-cloudwatch.html

If you are storing logs in S3, you can use Athena to query logs directly from S3. https://docs.aws.amazon.com/athena/latest/ug/querying-apache-logs.html

The important factor is in what format are you producing logs, how much logs would be produced and how you are querying the logs.

profile pictureAWS
支援工程師
已回答 10 個月前
  • Thanks for your answer, I want to clarify some things: logs is generated from user actions so the amount of logs would be massive, only operators query logs, so the query speed is not important

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南