-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
elastic-package export search #1821
Comments
Hey @ltflb-bgdi, thanks for opening this feature request. What is your use case for it? There are many kinds of Kibana objects that we could support in
The reasons to prefer dashboards that contain panels by value and not by reference can be found in the original request in elastic/package-spec#316. They are mainly faster installation times, and avoid bloating the visualizations search UI. Also we found out that there were little benefits on keeping visualizations per value, as they were hardly ever reused. We keep though the escape hatch of allowing to disable this linting rule, by adding the |
Hey @jsoriano, thanks for your response. The use case is to provide predefined, managed, non-editable searches for each of the data-streams of our custom integration-package. The same way dashboards can be managed. Without this feature, the default searches could be accidently saved, e.g. after a debugging session. Thanks for clarification on the referenced object. This makes absolutely sense. But still, as mentioned in elastic/package-spec#316, not all assets can be added as references, i.e. searches can only added as reference IMO. As far as I understand the spec, reference errors and warnings should only be thrown by using lens and visualizations, not on other assets like data-views and searches. Thanks for the hint to the escape hatch. I am already using it in the meantime and elastic-package check works properly. |
Yeah, this can be a good idea in some cases. I guess you are using these searches in the Discover view?
In principle searches can be used by value since 8.10 (elastic/kibana#148995). Though maybe we should then skip this validation for packages supporting older versions. |
While it is possible to export dashboards with
elastic-package export dashboards
and make them editable byelastic-package edit dashboards
it is not possible to do that for saved searches.As a workaround I have created a dashboard with references to all required searches. This works but leads to the following problems:
elastic-package lint
fails since it does not like dashboards with references (for what reasons I don't know since referencing objects in dashboards is a supported feature and works if done in kibana gui) - SVR00004Adding support for exporting and editing searches would greatly simplify the management of searches.
Ideally the command would be like this
elastic-package export|edit search
.Or even
elastic-package export|edit saved_object
for any kind of saved objects.The text was updated successfully, but these errors were encountered: