Kibanaのspaceに移行する | Elastic Blog
エンジニアリング

Kibanaのspaceに移行する

space

Kibana 6.5space使使spaceKibana使

spaceKibana"Default"space使space

space

1spacespaceKibanaImport/ExportUI使Import/ExportUI使space"spacespace"

1spacespaceManagement > Saved ObjectsExportJSON

Export Saved ObjectI

spacespace

Change Space

spaceManagement > Saved ObjectsspaceImportJSON

Import Saved Object

2Elasticsearchspacespacespace

space

KibanaElasticsearchKibana使Export/ImportUI1space""1Management > Saved ObjectsExport

Export all Saved Objects

JSON

spaceKibanaspaceManagement > Saved ObjectsImportJSONspace

spacespace

KibanaImport/ExportUI使spaceDashboard Import/Export APIs使

IDURLURL/app/kibana#/dashboard/?IDURL調ID

http://localhost:5601/s/marketing/app/kibana#/dashboard/<b>d203dd90-deac-11e8-869e-d73106bbd5ad</b>?_g=()

spaceURL使spaceURL/s//app/kibana#dashboardURL/s/DefaultspaceAPIKibanaURLspace/s/{spaceID}DefaultspaceURL調space

http://localhost:5601/s/<b>marketing</b>/app/kibana#/dashboard/d203dd90-deac-11e8-869e-d73106bbd5ad?_g=()

IDCURL{spacePrefix}/api/kibana/dashboards/export?dashboard={dashboardID}使GETmarketingIDd203dd90-deac-11e8-869e-d73106bbd5adexport.json

curl -u elastic:changeme http://localhost:5601/s/marketing/api/kibana/dashboards/export?dashboard=d203dd90-deac-11e8-869e-d73106bbd5ad > export.json

CURLDefaultspaceIDd203dd90-deac-11e8-869e-d73106bbd5adexport.json

curl -u elastic:changeme http://localhost:5601/api/kibana/dashboards/export?dashboard=d203dd90-deac-11e8-869e-d73106bbd5ad > export.json

spacespaceURLURLspacespace使spaceURL

export.json使 <{spacePrefix}/api/kibana/dashboards/import POSTCURL"sales"space

curl -H &#x201C;Content-Type: application/json&#x201D; -H &#x201C;kbn-xsrf: true&#x201D; -u elastic:changeme http://localhost:5601/s/sales/api/kibana/dashboards/import --data-binary @export.json

"Default"spaceCURL使

curl -H &#x201C;Content-Type: application/json&#x201D; -H &#x201C;kbn-xsrf: true&#x201D; -u elastic:changeme http://localhost:5601/api/kibana/dashboards/import --data-binary @export.json

space

KibanaspaceKibana使使space