logstash-plugins / logstash-input-s3

Apache License 2.0
57 stars 150 forks source link

S3 dynamic folder naming in yyyy/mm/dd #194

Open jaeniale-fd opened 4 years ago

jaeniale-fd commented 4 years ago

I am using Logstash with the s3 input plugin to copy and rename incoming files. I want to use the time when logstash picks up the file as a prefix of the new filename.

test.txt is coming in, logstash picks it up and puts it in the same folder as %{+yyyy.MM.dd.HH}test.txt

Is there a way to make backup_add_prefix use the current date?

TarunChillara commented 4 years ago

I am facing a similar issue. Can someone respond to this?

karenzone commented 4 years ago

@robbavey @colinsurprenant Will you take a look, please? Could this be a docs issue?

robbavey commented 4 years ago

@karenzone Not a docs issue - the backup_add_prefix setting currently does not support dynamic substitution.

I've added the enhancement label, this looks like a useful feature for this plugin.