Elasticsearch indexing JSON Log Files in a Folder

json log files are located in the folde, want to index these files elasticsearh .
first time I use ElasticSearch.
Could you explain it in a simple way.
Thank you

I believe you can read each line with filebeat and stream it to elasticsearch directly.
With a configuration similar to:

filebeat.inputs:
- type: log
  enabled: true
  paths:
    - /var/log/*.json
  json.message_key: log

I'm moving your question to #beats:filebeat then.

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