Add script for analysing logstash records in real-time