# Read JSON array file

**URL:** https://discuss.elastic.co/t/read-json-array-file/206376
**Category:** Logstash
**Created:** [November 4, 2019, 10:47am UTC](https://discuss.elastic.co/t/read-json-array-file/206376 "2019-11-04T10:47:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![MMH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmh/32/54449_2.png) [@MMH](https://discuss.elastic.co/u/MMH)
#### Post date: [November 4, 2019, 10:47am UTC](https://discuss.elastic.co/t/read-json-array-file/206376/1 "2019-11-04T10:47:18Z")

</div>

I am using Logstash 6.5. I want to read the JSON file, process it and end the execution of Logstash. The format of the input file is similar to the following:

```auto
[
{
    "id":"1",
    "value":"v1"
},
{
    "id":"2",
    "value":"v2"
},
{
    "id":"3",
    "value":"v3"
}
]

```

So basically it's an array with JSON structures.  
I have made a simple configuration script:

```auto
input {
    file {
        type => "json"
        path => "C:/logstash-6.5.1/datatest_struct_array.json"
        start_position => "beginning"
        sincedb_path => "nil"
        }
}
filter {
}
output {
    stdout { codec => rubydebug }  
}

```

When I invoke Logstash with that config basically nothing happens. It just hangs on the following log message  
`[INFO][logstash.agent] Successfully started Logstash API endpoint {:port=>9600}`  
and does nothing. No error, no output.  
I tried also `\` instead of `/` in the file name, but nothing changes.

---

<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: [November 4, 2019, 12:40pm UTC](https://discuss.elastic.co/t/read-json-array-file/206376/2 "2019-11-04T12:40:22Z")

</div>

Your sincedb\_path should "NUL", not "nil".

---

<div class="post-metadata">

### Author: ![MMH](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mmh/32/54449_2.png) [@MMH](https://discuss.elastic.co/u/MMH)
#### Post date: [November 4, 2019, 12:58pm UTC](https://discuss.elastic.co/t/read-json-array-file/206376/3 "2019-11-04T12:58:48Z")

</div>

I fixed that, but nothing changed. No error, no 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: [December 2, 2019, 1:05pm UTC](https://discuss.elastic.co/t/read-json-array-file/206376/4 "2019-12-02T13:05:14Z")

</div>

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