Synchronization of data between two spaces

Good morning,

I have the following doubt. In my Kibana (version 8) I have created a series of dashboards of the data of certain indices that are loaded daily. I have created this dashboard in the default space of Kibana.

On the other hand, I have created a new space, where only the dashboard can be viewed. I have carried out the process of copying the dashboards and the data views of the indexes from the source space to the new destination space. It has been copied correctly, and in the new space I can see the dashboards.

My question is, if these dashboards are updated daily with new data that is loaded into Kibana, do I have to manually copy the new data and dashboards from the source space to the destination space? Isn't there a way to keep the two slots in sync automatically?

He encontrado esta documentación en la que indican una forma de hacerlo a través de la API de Kibana. En este caso está para el copiado de los dashboards, pero, como copio usando la API un data view donde esta todo el contenido de datos para generar las gráficas?

Thanks in advaced

Thank you very much for the reply.

I've been looking around, and have built the following to do what I'm thinking of using the Kibana API and copy saved object methods.

This is the command that I try to launch from the command line:

curl -d '{
"objects": [{
"type": "dashboard",
"id": "91ccfd10-d516-11ec-9207-e138dd6bc778"
"spaces": "test",
"includeReferences": true,
"overwrite": true
}' -H "kbn-xsrf: true" -X POST --noproxy '*' --user user:pass http://localhost:5601/kibana/api/spaces/_copy_saved_objects

With this, what I am doing is copying the dashboard with the identifier 91*** that is in the default space that kibana creates to the space called "test" and that includes the references. I understand that includeReferences will also copy the data view that the dashboard uses to display the data. If I run this curl, I get this on the screen:

{"statusCode":400,"error":"Bad Request","message":"[request body.spaces]: expected value of type [array] but got [undefined]"}

I'm doing something wrong on this call.

Any recommendation

Thank you

Nope, the underlying data in the indices will be visible to any dashboard that reads from them.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.