Logstash conf file is not creating an index in ES when using docker-compose. This is my logstash.conf code, can anyone help me figure out the solution?
input{
elasticsearch {
hosts => "elasticsearch:9200"
user => "elastic"
password => "changeme"
}
file {
path => "<path of logFile on local desktop>/logFile.txt"
start_position => "beginning"
}
}
output{
elasticsearch{
hosts => "elasticsearch:9200"
user => "elastic"
password => "changeme"
index => "sample"
}