# Filebeat, replace fields from a dictionary

**URL:** <https://discuss.elastic.co/t/filebeat-replace-fields-from-a-dictionary/209709>\
**Category:** Elasticsearch\
**Created:** [November 27, 2019, 2:56pm UTC](https://discuss.elastic.co/t/filebeat-replace-fields-from-a-dictionary/209709 "2019-11-27T14:56:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111248](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111248/32/47036_2.png) [@111248](https://discuss.elastic.co/u/111248)\
**Post date:** [November 27, 2019, 2:56pm UTC](https://discuss.elastic.co/t/filebeat-replace-fields-from-a-dictionary/209709/1 "2019-11-27T14:56:35Z")

</div>

Hello.  
I have log file complex structure, for example:  
{20191029084915,1,2}  
Also I have a dictionary file:  
{5,"AAA",1},  
{5,"BBB",2},  
{6,"CCC",1},  
{6,"DDD",2},  
I need to read the log file and realtime replace the fields from the dictionary.  
The output should be:  
{20191029084915,"AAA","DDD"}  
Logstash has a filter translate {}, but how can I do this without a logstash, only filebeat, painless script and ingest\_node?

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [November 27, 2019, 4:02pm UTC](https://discuss.elastic.co/t/filebeat-replace-fields-from-a-dictionary/209709/2 "2019-11-27T16:02:23Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 25, 2019, 4:02pm UTC](https://discuss.elastic.co/t/filebeat-replace-fields-from-a-dictionary/209709/3 "2019-12-25T16:02:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
