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
demandé il y a 10 mois245 vues
1 réponse
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
INGÉNIEUR EN ASSISTANCE TECHNIQUE
répondu il y a 10 mois
  • 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

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions