According to Filebeat documentation : "the setup
command loads the recommended index template for writing to Elasticsearch and deploys the sample dashboards (if available) for visualizing the data in Kibana. This is a one-time setup step."
From a Devops perspective, it looks like the command 'filebeat setup' is not idempotent i.e. the whole setup is rerun each time.
Is there a way to check if index and dashboard are already setup in order to decide to run filebeat setup or not ?
Thanks for your support.
Best Regards.