Read JSON array file

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:

[
{
    "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:

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.

Your sincedb_path should "NUL", not "nil".

I fixed that, but nothing changed. No error, no output.

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