Remove part of field name from json inputted fields

I have tried using the information posted here

And I just end up with _rubyparse errors in my tags as well as some additional "cannot convert string to integer " errors in my logstash.log