Filebeat 5.4.2 not processing JSON file


I am trying to process a simple JSON file into Logstash but i see the logstash which is listening at port 5044 is not receiving any data from filebeat.

Here is my filebeat config


# Each - is a prospector. Most options can be set at the prospector level, so
# you can use different prospectors for various configurations.
# Below are the prospector specific configurations.

- input_type: log
# Paths that should be crawled and fetched. Glob based paths.
          - /home/box/memory_data_yash2.json
  json.keys_under_root: true
  json.add_error_key: true
  json.message_key:  target

And here is my simple 1 line json
[{"target": "memory-buffered","name": {"firstname": "yasho"}}]

Please enable debug logging and provide the log output.

Resolved this issue, I was processing just one record and it did not have a "\n" in it.

This topic was automatically closed after 21 days. New replies are no longer allowed.