# No output from json line delimited file

**URL:** https://discuss.elastic.co/t/no-output-from-json-line-delimited-file/299092
**Category:** Logstash
**Created:** [March 8, 2022, 1:28pm UTC](https://discuss.elastic.co/t/no-output-from-json-line-delimited-file/299092 "2022-03-08T13:28:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![theflakes](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@theflakes](https://discuss.elastic.co/u/theflakes)
#### Post date: [March 8, 2022, 1:28pm UTC](https://discuss.elastic.co/t/no-output-from-json-line-delimited-file/299092/1 "2022-03-08T13:28:11Z")

</div>

I'm trying to get Logstash 8 working with a config that works in Logstash 7. I'm not getting any output even though it works fine in v7. If I remove all the filters, I still do not get any output. When I run LS in debut I can see all the individual json lines read in, but, again, there is no output.

The input file is thousands of line delimited json individual logs. I verified that it is syntactically correct json. I've tried running logstash via Ubuntu and Windows Subsystem for Linux with the same lack of output. What am I missing?

```auto
input {
  file {
    path => ["/tmp/in.json"]
    start_position => "beginning"
    sincedb_path => "/dev/null"
    codec => "json_lines"
  }
}
filter {
}
output {
  stdout { codec => rubydebug }
}

```

thanks all

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [March 8, 2022, 1:42pm UTC](https://discuss.elastic.co/t/no-output-from-json-line-delimited-file/299092/2 "2022-03-08T13:42:40Z")

</div>

Can you share logstash logs when you run this pipeline?

I don't think much changed from 7.X to 8.X in ths input, but have you tried to remove the `codec => "json_lines"` ? You do not need it.

The [codec description](https://www.elastic.co/guide/en/logstash/current/plugins-codecs-json_lines.html#_description_180) has a note that you should not use `json_lines` when using the `file` input.

> NOTE: Do not use this codec if your source input is line-oriented JSON, for example, redis or file inputs. Rather, use the json codec. More info: This codec is expecting to receive a stream (string) of newline terminated lines. The file input will produce a line string without a newline. Therefore this codec cannot work with line oriented inputs.

Also, if possible share some sample message from your file so it is possible to try to replicate your issue.

---

<div class="post-metadata">

### Author: ![theflakes](https://avatars.discourse-cdn.com/v4/letter/t/839c29/32.png) [@theflakes](https://discuss.elastic.co/u/theflakes)
#### Post date: [March 8, 2022, 9:33pm UTC](https://discuss.elastic.co/t/no-output-from-json-line-delimited-file/299092/3 "2022-03-08T21:33:10Z")

</div>

Thanks, I kinda figured it out. I switched to stdin and just pasted in logs from the same file I wanted to test and that worked fine.

---

<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 5, 2022, 9:33pm UTC](https://discuss.elastic.co/t/no-output-from-json-line-delimited-file/299092/4 "2022-04-05T21:33:32Z")

</div>

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