# Json Logstash

**URL:** https://discuss.elastic.co/t/json-logstash/247602
**Category:** Logstash
**Created:** [September 4, 2020, 9:36pm UTC](https://discuss.elastic.co/t/json-logstash/247602 "2020-09-04T21:36:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![HenriqueNogueira](https://avatars.discourse-cdn.com/v4/letter/h/dbc845/32.png) [@HenriqueNogueira](https://discuss.elastic.co/u/HenriqueNogueira)
#### Post date: [September 4, 2020, 9:36pm UTC](https://discuss.elastic.co/t/json-logstash/247602/1 "2020-09-04T21:36:20Z")

</div>

Hi guys,  
I'm trying to add a json file to my ELK and I can't get it in any way, they could help me, I'm posting my confs. Thank you!

input {  
file {  
path =\> "/tmp/teste/teste.json"  
start\_position =\> "beginning"  
sincedb\_path =\> "/dev/null"  
codec =\> "json"  
}  
}  
output {

```
elasticsearch {
  hosts => ["https://10.171.1.30:9200","https://10.171.5.11:9200"]
  index => "magento-logs"
  cacert => "/etc/logstash/ca.crt"
  user => 'xxx'
  password => 'xxxxxxx'

```

}  
}

---

<div class="post-metadata">

### Author: ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)
#### Post date: [September 4, 2020, 10:23pm UTC](https://discuss.elastic.co/t/json-logstash/247602/2 "2020-09-04T22:23:56Z")

</div>

Do you get any errors? If you change the output to

```
output { stdout { codec => rubydebug } }

```

then what do the events look like?

---

<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: [October 2, 2020, 10:24pm UTC](https://discuss.elastic.co/t/json-logstash/247602/3 "2020-10-02T22:24:07Z")

</div>

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