# Parse nested json - Logstash v16.2 on Windows 10

**URL:** <https://discuss.elastic.co/t/parse-nested-json-logstash-v16-2-on-windows-10/301296>\
**Category:** Logstash\
**Created:** [April 1, 2022, 9:15am UTC](https://discuss.elastic.co/t/parse-nested-json-logstash-v16-2-on-windows-10/301296 "2022-04-01T09:15:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ely\_96](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ely_96/32/103816_2.png) [@Ely\_96](https://discuss.elastic.co/u/Ely_96)\
**Post date:** [April 1, 2022, 9:15am UTC](https://discuss.elastic.co/t/parse-nested-json-logstash-v16-2-on-windows-10/301296/1 "2022-04-01T09:15:31Z")

</div>

Hi guys, I'm trying to import a nested json into Elasticsearch v7.16, but I haven't been successful so far. I managed successfully to import a "normal" (not nested) json, but for the nested one I'm in trouble. Could you please help me?

This is an example of my json:

```auto
{
	"header": {
		"institute":"Alpha",
		"location":"USA",
	},
        "product": {
		"code":"A001",
		"price":"12.34",
	},
        "customer": {
		"name":"Mark",
		"age":"24",
	},
}

```

My pipeline.conf

```auto
input {
	file {
		type => "json"
		path => "C:/elastic716/logstash/sz_log/json_real.txt"
		start_position => "beginning"
		sincedb_path => "NULL"
	}
}

filter {
	json{
        source => "message"
    }
}

output {
	stdout {}
}

```

In this case I would like to see the result with stdout, and the load data on Elasticsearch.

I run it with this command on cmd (logstash/bin folder):

```auto
logstash -f pipeline.conf

```

but I can't see any result:

```auto
[INFO][logstash.agent] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>[]}

```

---

<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:** [April 1, 2022, 4:15pm UTC](https://discuss.elastic.co/t/parse-nested-json-logstash-v16-2-on-windows-10/301296/2 "2022-04-01T16:15:36Z")

</div>

> [@Ely\_96](#):
>
> `sincedb_path => "NULL"`

That will persist the in-memory sincedb to a file called NULL in the working directory of logstash. If you do not want the in-memory database persisted across restarts then set it to NUL.

---

<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:** [April 29, 2022, 4:15pm UTC](https://discuss.elastic.co/t/parse-nested-json-logstash-v16-2-on-windows-10/301296/3 "2022-04-29T16:15:51Z")

</div>

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