Refactor the logstash crontab script. Adds optimization for yesterday's index.