# Json files from a voip switch

**URL:** <https://discuss.elastic.co/t/json-files-from-a-voip-switch/87572>\
**Category:** Elasticsearch\
**Created:** [May 30, 2017, 1:26pm UTC](https://discuss.elastic.co/t/json-files-from-a-voip-switch/87572 "2017-05-30T13:26:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![aqsyounas](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@aqsyounas](https://discuss.elastic.co/u/aqsyounas)\
**Post date:** [May 30, 2017, 1:26pm UTC](https://discuss.elastic.co/t/json-files-from-a-voip-switch/87572/1 "2017-05-30T13:26:26Z")

</div>

Greetings members,  
I have a voip switch(Freeswitch) which generates json files for each call in a directory. Directory contains files like below.  
`55438eca-ebb2-4815-9abc-c2f7f5e884bb.cdr.json`  
`34324fdfv-veeff-48ce-4r44-rr4r4vffvf5efef.cdr.json`

Whereas data in files consists of multiple json objects. I want to see data in these files in kibana.  
Could someone please give me some pointers how to get started.  
I am new to elasticsearch and totally blind which way i should go.

Best Regards.

---

<div class="post-metadata">

**Author:** ![vijayparashar12](https://avatars.discourse-cdn.com/v4/letter/v/c5a1d2/32.png) [@vijayparashar12](https://discuss.elastic.co/u/vijayparashar12)\
**Post date:** [May 30, 2017, 1:56pm UTC](https://discuss.elastic.co/t/json-files-from-a-voip-switch/87572/2 "2017-05-30T13:56:52Z")

</div>

you can use file beat to Index data in elasticsearch and then you can query them or aggregate them in Kibana.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 30, 2017, 2:05pm UTC](https://discuss.elastic.co/t/json-files-from-a-voip-switch/87572/3 "2017-05-30T14:05:15Z")

</div>

If there is one single doc per file you can give a look at FSCrawler which can do that.

---

<div class="post-metadata">

**Author:** ![aqsyounas](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@aqsyounas](https://discuss.elastic.co/u/aqsyounas)\
**Post date:** [May 30, 2017, 7:43pm UTC](https://discuss.elastic.co/t/json-files-from-a-voip-switch/87572/4 "2017-05-30T19:43:50Z")

</div>

Thanks, but this sends the whole file as it, can i modify some part of json file, i.e, i want to show only few part of whole json file.

---

<div class="post-metadata">

**Author:** ![aqsyounas](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@aqsyounas](https://discuss.elastic.co/u/aqsyounas)\
**Post date:** [May 30, 2017, 7:49pm UTC](https://discuss.elastic.co/t/json-files-from-a-voip-switch/87572/5 "2017-05-30T19:49:25Z")

</div>

Will filebeat automatically detect the new files created in the directory? Its actually one document per file.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 30, 2017, 7:55pm UTC](https://discuss.elastic.co/t/json-files-from-a-voip-switch/87572/6 "2017-05-30T19:55:14Z")

</div>

You can use an ingest pipeline if you want to remove some fields.

---

<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 27, 2017, 7:55pm UTC](https://discuss.elastic.co/t/json-files-from-a-voip-switch/87572/7 "2017-06-27T19:55:35Z")

</div>

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