Need to do a calculation in logstash

Remove the square brackets around event.get('check_'). They turn it into an array and prevent .to_i working. Square brackets are used to reference fields in the logstash configuration, not in ruby.