-
Notifications
You must be signed in to change notification settings - Fork 44
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
KibanaIsServerless check causes 400 Bad Request errors on Stateful Kibana #181
Comments
@fearful-symmetry I think at the time we wrote this there wasn't a better way to tell if we were connected to serverless Kibana, so instead we used an API that didn't exist in stateful, correct? Were there ever plans to implement an API for this detection? Or is that something we need to follow up on? |
My uneducated guess is this call returns: and returns
with a 400 error on stateful Fixing it on stateful may just require giving it the required query parameter like: Ideally a dedicated API would be better but adding the type would be a quick fix here |
@cmacknz yah, at the time that code was written, we didn't really have a good way to detect serverless mode in Kibana. It's totally a hack (I even called it a hack in the commit). However, that was a long time ago, and hopefully the API has changed. I can ask the slack channel. |
Looks like this will end up in serverless deployments soon: elastic/kibana#176477 |
Hey! I just found out this behavior and was about to report it. Glad that you had it on your radar. Just letting you know that You can rely on that now. |
@cmacknz @strawgate @fearful-symmetry |
@pierrehilbert we should put this on the board for the next 1-2 sprints or something; this is probably an easy fix |
Our new KibanaIsServerless check causes hard to track down noise in the Kibana log in stateful environments.
From discuss: https://discuss.elastic.co/t/elasticsearch-output-of-filebeat-is-empty-displays-http-error-400-bad-request/352407
elastic-agent-libs/kibana/client.go
Lines 351 to 359 in 4739839
The text was updated successfully, but these errors were encountered: