I'm working on automation of beats deployment with ansible. I don't want to give all the beats access to neither kibana nor elasticsearch, just logstash. So I decided to grab all the dashboards delivered with beats and import them with ansible through kibana api to saved_objects. But that not easy - exporting dashboard still wants to have access to kibana, so the only option I see is to do
filebeat setup --dashboards auditbeat setup --dashboards winlogbeat setup --dashboards
and then download the dashboards from kibana to save with my project.
Other things such as index config, templates, etc can be exported without problems to stdin.
Is there a easier way how to achieve this?