How to stream audio from S3 to Kibana

Hello Folks,

I am a beginner to Elasticsearch and Kibana. My goal is to stream audio files from an S3 bucket to Kibana. Currently, I can only stream audios from a public website to Kibana but not from the S3 bucket to Kibana. Does anyone know how to do that?

Thanks,
Li-Yun

Is there any error that shows up in the console logs or somewhere when you try to do it from S3?

@Marius_Dragomir. No, I did not see any error. I could see a play icon on Kibana, but nothing happened when I clicked the icon. In order to stream an audio file in S3, should I add S3 credentials to Elasticsearch or Kibana? Thanks.

The way I see it would be to add a proxy between Kibana and S3 and add the auth params (either the query ones or the HTTP header ones).
Kibana's requests are fairly basic when made to an outside place (anything other than Elasticsearch).

Thanks for your replaying. Could you please mention the approach more details? Thanks.

It doesn't really have anything to do with Kibana.
Just make all outgoing connections from your machine go through your proxy (of choice), and when you match a rule of requests made to your S3 bucket for the audio file, add the necessary information from the proxy to the request: https://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-authenticating-requests.html#auth-methods-intro
I assume both Authentication methods work.

Thank you for your reply. I will check the link.

This also looks like a good tool for pretty much this purpose: https://github.com/pottava/aws-s3-proxy.
https://github.com/pottava/aws-s3-proxy

@Marius_Dragomir I looked at the readme file for https://github.com/pottava/aws-s3-proxy, but I did not get any idea to use. Have you used it before? Thanks.