Issues with Gsub moving from Logstash 7 to 8

Thank you Badger, thanks to you I found the problem. Turns out the event.original which is the one that returned a different value, was populated from the beginning, so I just had to overwrite it after doing the gsub.