logstash-plugins / logstash-input-s3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Initial import behaviour

calve opened this issue · comments

commented

Hi there,

I am wondering what is the behaviour of this plugin on first run.

Looking at the code, it looks like the plugin will fetch every possible file in the s3 bucket if no sincedb can be found

return Time.new(0)

I dont want logstash-input-s3 to pull the entire bucket has it contains tons of data. Is there a way to start #parsing files from a specific date ? (ideally, from now)

I was thinking of invoking ruby -e "puts Time.now()" > $SINCEDB_PATH before the first run. What do you think of it ?