you could create a text file that holds the data in a csv. That means you have a file that holds the keys and the replacements.
That file needs to be uploaded to all Graylog servers and you configure a lookup table with that data. After that you configure a processing pipeline that use the lookup table in your processing and replace the string.