# Parse json with filebeat and send to logstash

**URL:** <https://discuss.elastic.co/t/parse-json-with-filebeat-and-send-to-logstash/301643>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 5, 2022, 1:35pm UTC](https://discuss.elastic.co/t/parse-json-with-filebeat-and-send-to-logstash/301643 "2022-04-05T13:35:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aviad.co1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aviad.co1/32/100122_2.png) [@aviad.co1](https://discuss.elastic.co/u/aviad.co1)\
**Post date:** [April 5, 2022, 1:35pm UTC](https://discuss.elastic.co/t/parse-json-with-filebeat-and-send-to-logstash/301643/1 "2022-04-05T13:35:56Z")

</div>

Hi, I have the following json :  
[{"nqdf": 24, "qqqf": 34}]

and I try to send him to logstash.

this is my filebeat.yml :

- type: log  
enabled: true  
paths:
  - C:\beats\jsonfiles\*.json  
json.keys\_under\_root: true  
json.message\_key: event  
json.add\_error\_key: true

filebeat.config.modules:  
path: ${path.config}/modules.d/\*.yml

reload.enabled: true

filebeat.config.inputs:  
enabled: true  
reload.enabled: true  
reload.period: 10s

output.logstash:

hosts: ["xx.xx.xx.xx:5044"]

processors:

- add\_host\_metadata:

this is my logstash.conf :  
input {  
beats {  
codec =\> "json"  
port =\> 5044  
host =\> "0.0.0.0"  
}  
}

filter {

}

output {  
stdout{}  
}

I don't get any values on screen when I run logstash.. Maybe someone can help...  
Thanks

---

<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:** [May 3, 2022, 3:36pm UTC](https://discuss.elastic.co/t/parse-json-with-filebeat-and-send-to-logstash/301643/2 "2022-05-03T15:36:25Z")

</div>

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