Closed LorenzoScebba closed 4 years ago
Strange. Could you download the original file (https://raw.githubusercontent.com/spujadas/elk-docker/master/logstash-conf/30-output.conf) and bind-mount it to see if it's an issue with the mount or with the file?
With the original file, and also with the index name changed, it works!
I'll post here the 2 files just for comparison
not-working-output.conf
output {
elasticsearch {
hosts => ["localhost"]
manage_template => false
index => "logs-index-%{+YYYY.MM.dd}"
}
}
working-output.conf
output {
elasticsearch {
hosts => ["localhost"]
manage_template => false
index => "logs-index-%{+YYYY.MM.dd}"
}
}
The only differences are the number of spaces for the indentation used, 2 in the working one, 4 for the not working one.
I will close this as the problem has been solved.
Thanks!
Hi,
First of all, thanks for the docker image, it's so great!
I'm trying to override the default index name in the output file "30-output.conf"
At the moment, my docker-compose looks something like this:
The image name is the result of building the following Dockerfile
And the following is the content of the 2 .conf files :
02-beats-input.conf
output.conf
Everything looks great to me but after starting the docker-compose i get the following error:
The same docker-compose works if i comment or remove the volume mount to the ./output.conf file.
I've tried to re-type the output.conf file by hand in case of any illegal characters but i had no luck.
Do you have any ideas?
Thanks!