# How to find JSON-Properties from LogFile as Fields in Elasticsearch?

**URL:** https://discuss.elastic.co/t/how-to-find-json-properties-from-logfile-as-fields-in-elasticsearch/114266
**Category:** Logstash
**Created:** [January 5, 2018, 10:00am UTC](https://discuss.elastic.co/t/how-to-find-json-properties-from-logfile-as-fields-in-elasticsearch/114266 "2018-01-05T10:00:43Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![awaitJosh](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@awaitJosh](https://discuss.elastic.co/u/awaitJosh)
#### Post date: [January 5, 2018, 6:25pm UTC](https://discuss.elastic.co/t/how-to-find-json-properties-from-logfile-as-fields-in-elasticsearch/114266/5 "2018-01-05T18:25:39Z")

</div>

After a long day I´ve found out, that logstash was not the right place for my configuration. My answer was here: [Parse JSON data with filebeat - #3 by calmandniceperson](https://discuss.elastic.co/t/parse-json-data-with-filebeat/80008/3)

This configuration for filebeat.prospectors finally solved my problem.

> [@Parse JSON data with filebeat](https://discuss.elastic.co/t/parse-json-data-with-filebeat/80008/4):
>
> filebeat.prospectors:
> 
> - paths:
> - test.json  
> input\_type: log  
> json.keys\_under\_root: true  
> json.add\_error\_key: true

@magnusbaeck nevertheless thank you for your answer!

---

_[View the full topic](https://discuss.elastic.co/t/how-to-find-json-properties-from-logfile-as-fields-in-elasticsearch/114266)._
