Added ttl to elasticsearch output