Hey there,
I am using Filebeat
to send log files over to my Logstash
with the following configurations:
filebeat.inputs:
- type: log
enabled: true
paths:
- ${PWD}/filebeat-volume/data/*.txt
output.logstash:
enabled: true
hosts: ["elk:5044"]
index: "custom-index"
setup.kibana:
host: "localhost:5601"
input {
beats {
port => "5044"
}
}
output {
elasticsearch {
hosts => [ "localhost:9200" ]
index => "WHAT SHOULD GO HERE???"
}
}
In filebeat.yml
, I am specifying an index ("custom index"). How can I set the same index in my logstash.yml
to be sent to Elasticsearch
?