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
asked 10 months ago236 views
1 Answer
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
SUPPORT ENGINEER
answered 10 months ago
  • 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

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions