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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ