Open F9Alejandro opened 10 months ago
I've figured it out, logstash needs to know where is the pipeline .conf file, relevant part from docker-compose.yml:
logstash01:
depends_on:
es01:
condition: service_healthy
kibana:
condition: service_healthy
image: docker.elastic.co/logstash/logstash:${STACK_VERSION}
labels:
co.elastic.logs/module: logstash
user: root
volumes:
- certs:/usr/share/logstash/certs
- logstashdata01:/usr/share/logstash/data
- "./logstash_ingest_data/:/usr/share/logstash/ingest_data/"
- "./logstash.conf:/usr/share/logstash/pipeline/logstash.conf:ro"
environment:
- xpack.monitoring.enabled=false
- ELASTIC_USER=elastic
- ELASTIC_PASSWORD=${ELASTIC_PASSWORD}
- ELASTIC_HOSTS=https://es01:9200
command:
- -f
- /usr/share/logstash/pipeline/
Add the command part to the code.
thanks for the heads up. i'll test the one out.
i am unable to recreate this error and do not need to specify the -f command as this is taken care of by passing in the logstash.conf to the default pipeline directory.
@elkninja probably because this issue is related to version 8.11.3 and above. I had the same error message with 8.12.0.
When trying to run the logstash portion of the compose it throws an error about the formatting of the .conf file. I am using the file that is provided in this repo and haven't made any changes to it.
Logstash error:
Any recommendations for trying to fix this issue?