It is possible to read aws s3 logs by loki?

It is possible to read s3 logs in loki.
If yes, then how can we read the s3 logs in loki.

Hi,

it depends which S3 logging option you choose. If you choose CloudTrail you could export the logs CloudWatch Logs and then import them with our Lambda Promtail. However, if you choose to store the logs in an S3 bucket we would have to add a Promtail target for S3.

2 Likes

@karsten , Iā€™m starting to evaluate this now. Is one option preferred over the other?
@suhackz , which direction did you end up going with?
Thanks!

Hi @karsten , did you get the solution for this issue. Please share your solution if any you got?

Sorry for the late reply and thanks for picking the topic up. The tracking issue is https://grafana/loki#2045. There are no concrete plans. However, Lambda Promtail can scrape logs from S3. Please see my last comment on the issue #2035.

1 Like

Thanks @karsten for your response.