Hi!
I'd like to get rid of the following data views from the Default space:
- logs-*
- metrics-*
- synthetics-dashboard
and I'm using ansible to set up my custom environments. One of my tasks does the following:
- name: Removing dataviews "logs-*", "metrics-*", "synthetics-dashboard"...
ansible.builtin.uri:
url: "http://{{ dynamic_data.elastic_setup_userenv.kibana_host }}:{{ dynamic_data.elastic_setup_userenv.kibana_port }}/api/data_views/data_view/{{ item | urlencode }}"
url_username: "{{ dynamic_data.elastic_setup_userenv.elastic_superuser }}"
url_password: "{{ dynamic_data.elastic_setup_userenv.elastic_superuser_password }}"
status_code: [200]
force_basic_auth: true
headers:
kbn-xsrf: true
validate_certs: false
method: DELETE
loop:
- logs-*
- metrics-*
- synthetics-dashboard
delegate_to: localhost
The call returns 200 so everything seems to go fine for all three entries. However, when I log into Kibana the data views are still there. What am I doing wrong here? I'm running 8.10.x
Cheers