# Indexing Json file

**URL:** <https://discuss.elastic.co/t/indexing-json-file/190183>\
**Category:** Logstash\
**Created:** [July 12, 2019, 9:10am UTC](https://discuss.elastic.co/t/indexing-json-file/190183 "2019-07-12T09:10:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luc1](https://avatars.discourse-cdn.com/v4/letter/l/e79b87/32.png) [@luc1](https://discuss.elastic.co/u/luc1)\
**Post date:** [July 12, 2019, 9:10am UTC](https://discuss.elastic.co/t/indexing-json-file/190183/1 "2019-07-12T09:10:58Z")

</div>

Hi,

I'm trying to parse JSON file with logstash. In kibana I see the field "counters" of my JSON file like that :

 ![Screenshot%20(5)_LI](https://us1.discourse-cdn.com/elastic/original/3X/d/7/d7b8f4042873672adaedd1c077a65e12e9c337d4.jpeg)

What i'm interested in is to get the "tele" in the "sdn" attribute

I tried to do a conf file like that :

> input {  
> beats {  
> port=\> 5044  
> }  
> }  
> filter{  
> json {  
> source =\> "message"  
> }  
> split { field =\> "[counters]" }
> 
> if "tele" in [counters][sdn]{  
> mutate{add\_field=\>["VNFc", "tele"]  
> }  
> }  
> }  
> output{  
> elasticsearch  
> {  
> action =\> "index"  
> hosts =\> ["localhost:9200"]  
> index =\> "test-%{+YYYY.MM.dd}"  
> }stdout {}  
> }

Thanks a lot (i'm new to ELK 😬 )

---

<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:** [August 9, 2019, 9:11am UTC](https://discuss.elastic.co/t/indexing-json-file/190183/2 "2019-08-09T09:11:02Z")

</div>

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