Create index in elasticsearch for a file in S3 bucket

Hello,

Is it possible to create an index just for one file in a S3 bucket?

Also,is it possible to change the type or tag based on the file name in the bucket.

Thank you.
Sai

Hi,

You could use Logstash's s3 input to create your index:

https://www.elastic.co/guide/en/logstash/current/plugins-inputs-s3.html

Hello Mike,

I used the S3 input, but it takes all the files in the bucket. I would like to index just one of the n-files in the buckets.

Hi,

Can you try using a prefix which matches only the file you want and see if that works:

https://www.elastic.co/guide/en/logstash/current/plugins-inputs-s3.html#plugins-inputs-s3-prefix

That doesn't work either.

Thank you.
Sai