Elasticsearch output for filebeat to get only nginx logs

Hi Everyone,

Currently I see all kinds of logs in default logstash index, I have to channelize only nginx logs from filebeat to elastic search.

Tried by enabling nginx module, but that did not change anything.

Do we have to add anything in Elastic search output in filebeat.yml ? Anything like below can be added for nginx?

#-------------------------- Elasticsearch output ------------------------------
#output.elasticsearch:
  # Array of hosts to connect to.
#  hosts: ["localhost:9200"]
output.kafka:
  hosts: ["10.0.0.121:9092"]
  topic: "filebeat"
  codec.json:
    pretty: false

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