# Insert data from json files

**URL:** <https://discuss.elastic.co/t/insert-data-from-json-files/131730>\
**Category:** Elasticsearch\
**Created:** [May 14, 2018, 11:47am UTC](https://discuss.elastic.co/t/insert-data-from-json-files/131730 "2018-05-14T11:47:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![M.alsioufi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/m.alsioufi/32/52269_2.png) [@M.alsioufi](https://discuss.elastic.co/u/M.alsioufi)\
**Post date:** [May 14, 2018, 11:47am UTC](https://discuss.elastic.co/t/insert-data-from-json-files/131730/1 "2018-05-14T11:47:07Z")

</div>

I have a python script that creates a JSON file every now and then (no specific schedule) I want to store this JSON file in elasticsearch when it is created. What is the best tool in elastic-stack to handle this? Is it can be done with Logstash or Beats?

Also I have another script that creates a custom file .klm every now and then (again no specific schedule) I want to insert the file's name as soon as it is created so again is this can be done with Logstash or Beats, or any other suggestion of where I can start?!

---

<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:** [June 11, 2018, 11:47am UTC](https://discuss.elastic.co/t/insert-data-from-json-files/131730/2 "2018-06-11T11:47:15Z")

</div>

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