-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Search service] Add search IDs to requests made to Elasticsearch #16493
Comments
I have a reverse proxy in front of Kibana which knows user identities and is capable of attaching If anyone else is in the same boat—making your own opaque IDs in front of Kibana—dropping this into kibana.yml lets it pass through 😄 (env-var didn't seem to work) elasticsearch.requestHeadersWhitelist: [ x-opaque-id ] |
Worked this issue around by introducing "dummy filters" with object ids embedded in them for each Kibana object.
Can probably setup a watcher on top of all of this to send out best practices to potential culprits ) The worst thing in all of this are those "dummy filters" as they have to be re-generated and re-uploaded into Kibana regularly with a script Here's an example of the generated filter for a visualization With a custom label: |
+1 This should be implemented as part of the service as a feature, we shouldn't have to depend on a third party application or some "hack" to implement a feature such as this. |
What information should be associated with that search id? Some things to keep in mind:
Maybe it would help if we included a lot of information, such as:
|
@stacey-gammon I started working on #101587 Could you elaborate on a few moments:
Not all Kibana entities have SO, as you said. Maybe we should pass Kibana entity identifier? With this
Do you mean the URL to a current Kibana entity (a visualization, for example)? the url to a SO? the current page URL? |
What is the Kibana Entity Identifier? You mean the type, like "Lens"?
I meant the current page URL. For example, if an expensive query is coming from the security network page - there is no saved object. |
yes, a dashboard panel, canvas workpad, etc.
Let's consider a dashboard page with several panels. It's hard to identify what panel causes a specific query. So, I'd say we are interested in |
Yea, that's a good example. That might be tough though because the dashboard doesn't send the query, the embeddable does. The embeddable knows it's in a dashboard, but doesn't know where that dashboard is embedded. |
Closing in favor of #97934. |
Describe the feature: Elasticsearch now supports providing a search id by setting
X-Opaque-Id
http header. Having a search ID set could be useful in tracking down the source of problematic queries (if this could be logged at both kibana & elasticsearch)elastic/elasticsearch#27764
Extra terms for seach-ability:
The text was updated successfully, but these errors were encountered: