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
gefragt vor 10 Monaten245 Aufrufe
1 Antwort
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-TECHNIKER
beantwortet vor 10 Monaten
  • 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

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen