How to EXPIRE a key in logstash?


(NM) #1

correct way of expiring a key in logstash

input { http { host => "127.0.0.1" # default: 0.0.0.0 port => 31311 # default: 8080 } } output { redis { host => 'localhost' data_type => 'list' key => 'logstash:redis' EXPIRE => 'logstash:redis' '10' } }


(Magnus B├Ąck) #2

The redis output plugin doesn't support setting the key's expiration time.


(NM) #3

I want to log events whenever they happen into redis, and this events will have expiry of lets say 1 hour, no of events per sec in high traffic conditions is 1300, so should i go with nginx under php or logstash ?


(system) #4