Filebeat, replace fields from a dictionary

I have log file complex structure, for example:
Also I have a dictionary file:
I need to read the log file and realtime replace the fields from the dictionary.
The output should be:
Logstash has a filter translate {}, but how can I do this without a logstash, only filebeat, painless script and ingest_node?

I am moving this question to ES forum, as it is more of an Ingest node question than Filebeat.