Logstash error : no implicit conversion of nil into Integer

The add_field and the convert need to be in separate mutate filters. add_field first, then mutate.