elkninja / elastic-stack-docker-part-one

Getting up and running with Elastic Stack on Docker-Compose
Apache License 2.0
152 stars 94 forks source link

Missing beats setup for index #6

Open bluepuma77 opened 1 year ago

bluepuma77 commented 1 year ago

When using the provided docker-compose.yml, the beats containers show a gazillion errors.

It seems to me the index setup was not performed (doc):

"Running Metricbeat with the setup command will create the index pattern and load visualizations , dashboards, and machine learning jobs"

docker run \
docker.elastic.co/beats/metricbeat:8.8.2 \
setup -E setup.kibana.host=kibana:5601 \
-E output.elasticsearch.hosts=["elasticsearch:9200"]

It would be great if:

  1. beats would do that automatically
  2. beats had a --ensureIndex command line option
  3. (elastic) setup container would create the indexes
  4. an additional beats setup container would create the indexes