# Logstash Json Input

**URL:** https://discuss.elastic.co/t/logstash-json-input/219593
**Category:** Logstash
**Created:** [February 17, 2020, 10:23am UTC](https://discuss.elastic.co/t/logstash-json-input/219593 "2020-02-17T10:23:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Ramon\_Mateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramon_mateo/32/46306_2.png) [@Ramon\_Mateo](https://discuss.elastic.co/u/Ramon_Mateo)
#### Post date: [February 17, 2020, 10:23am UTC](https://discuss.elastic.co/t/logstash-json-input/219593/1 "2020-02-17T10:23:27Z")

</div>

Hi.

I have a problem with my input and pipeline. i'm new with pipelines and json filter.

I don't know how to get logstash filter my json files and send to elasticsearch.

This a exemple of my json file:

> {"tenantID": 80454, "Size": 0.02, "FirstDate": "21/12/2019 08:29:08", "LastDate": "21/12/2019 22:45:32"}

And this is my actual pipeline for json files:

> input {  
> file {  
> type =\> "json"  
> path =\> "/usr/share/logstash/inputlogs/\*.json"  
> start\_position =\> "beginning"  
> sincedb\_path =\> "/usr/share/logstash/.sincedb"  
> }  
> }
> 
> filter {
> 
> ```
> json {
> source => "message"
> }
> 
> ```
> 
> }
> 
> output {  
> elasticsearch {  
> hosts =\> "elasticsearch:9200"  
> index =\> "lab-benchmarking-json"  
> }  
> stdout {}  
> }

what it's wrong with my pipeline??

Thanks for advanced.

---

<div class="post-metadata">

### Author: ![ITIC](https://avatars.discourse-cdn.com/v4/letter/i/90ced4/32.png) [@ITIC](https://discuss.elastic.co/u/ITIC)
#### Post date: [February 17, 2020, 10:32am UTC](https://discuss.elastic.co/t/logstash-json-input/219593/2 "2020-02-17T10:32:54Z")

</div>

Hi

What is the output of your `stdout{}` and how doees it differ from what you expect/need?

---

<div class="post-metadata">

### Author: ![Ramon\_Mateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramon_mateo/32/46306_2.png) [@Ramon\_Mateo](https://discuss.elastic.co/u/Ramon_Mateo)
#### Post date: [February 17, 2020, 10:36am UTC](https://discuss.elastic.co/t/logstash-json-input/219593/3 "2020-02-17T10:36:58Z")

</div>

Hi i can't see any output on logstash it's strange. And i need elastic create a index for this and i expect see all fields that my json file has on elasticsearch.

Thanks for advanced.

---

<div class="post-metadata">

### Author: ![Jasonespo](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@Jasonespo](https://discuss.elastic.co/u/Jasonespo)
#### Post date: [February 17, 2020, 10:38am UTC](https://discuss.elastic.co/t/logstash-json-input/219593/4 "2020-02-17T10:38:48Z")

</div>

Have you checked /var/log/logstash for any errors?

Have you created the index in elasticsearch first before trying to index? Do this through Kibana

---

<div class="post-metadata">

### Author: ![Ramon\_Mateo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ramon_mateo/32/46306_2.png) [@Ramon\_Mateo](https://discuss.elastic.co/u/Ramon_Mateo)
#### Post date: [February 17, 2020, 10:48am UTC](https://discuss.elastic.co/t/logstash-json-input/219593/5 "2020-02-17T10:48:19Z")

</div>

Don't show any error.

Index is created on logstash with output.

---

<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: [March 16, 2020, 10:48am UTC](https://discuss.elastic.co/t/logstash-json-input/219593/6 "2020-03-16T10:48:21Z")

</div>

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