I'm testing metricbeat:6.0.0-rc1 and confused on how to import dashboards into kibana when using as output logstash in an automated way(using ansible). I'm installing metricbeat which is configured default to send output to logstash. After metricbeat is running I'm trying to to execute
metricbeat setup -E "output.elasticsearch.hosts=[\"http://172.16.1.39:9201\"]" --dashboards
but I get error:
Exiting: error unpacking config data: more then one namespace configured accessing 'output' (source:'/etc/metricbeat/metricbeat.yml')
I understand that in version 6.x only one output is allowed but how do we import dashboards without changing the config to: stop metricbeat -> disable logstash -> enable elasticsearch -> load dashboards -> enable logstash -> start metricbeat? Am I missing smth ?