# Merge and transform more than one json files to elasticsearch from logstash

**URL:** https://discuss.elastic.co/t/merge-and-transform-more-than-one-json-files-to-elasticsearch-from-logstash/202660
**Category:** Logstash
**Created:** [October 8, 2019, 12:01pm UTC](https://discuss.elastic.co/t/merge-and-transform-more-than-one-json-files-to-elasticsearch-from-logstash/202660 "2019-10-08T12:01:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![namali](https://avatars.discourse-cdn.com/v4/letter/n/a87d85/32.png) [@namali](https://discuss.elastic.co/u/namali)
#### Post date: [October 8, 2019, 12:01pm UTC](https://discuss.elastic.co/t/merge-and-transform-more-than-one-json-files-to-elasticsearch-from-logstash/202660/1 "2019-10-08T12:01:27Z")

</div>

I try from translate plugin, but didnt work.

translate {  
destination =\> "[@metadata][city]"  
dictionary\_path =\> "/home/namalie/elk/hotelspro\_v2/city.json"  
field =\> "citycode" }  
dissect { mapping =\> { "[@metadata][destination\_]" =\> "%{results][cityname]" } }

}

---

<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: [November 5, 2019, 12:01pm UTC](https://discuss.elastic.co/t/merge-and-transform-more-than-one-json-files-to-elasticsearch-from-logstash/202660/2 "2019-11-05T12:01:31Z")

</div>

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