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 ------------------------------
  # Array of hosts to connect to.
#  hosts: ["localhost:9200"]
  hosts: [""]
  topic: "filebeat"
    pretty: false

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