-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
"No results found" in TSVB Markdown panels that use .kibana index pattern with no time field #102329
Comments
@GrahamHannington if you go to the panel options, which is the status of this setting ( If it is off, can you enable it and tell me if you see the |
In my Kibana 7.13.2 instance, that "Use only Kibana index patterns" setting is off. (I'm sure you know this, but just so you know I know this 🙂: in Kibana 7.11.2, where I am successfully using When I enable it, I see I quite deliberately created an index pattern in Kibana for Only later, after I'd already experimentally created a |
Interesting case indeed! I have never tried that :D Just FYI (to explain the change that you see with the dropdown), on 7.13.0 we introduced the dual mode on TSVB #91367 This enables TSVB to work both for indexes and index patterns. Note here that it is recommended to work with index patterns. Working with index patterns unlocks many cool features such as runtime fields, URL drilldowns and more features to come. The question is (as I have never used .kibana as an index pattern), if you change the mode and select the .kibana index pattern, does it render the markdown? |
Yes I have tested it, it should work for markdown. @GrahamHannington thanx for reporting this, we will try to fix t for 7.13.3 @alexwizp it seems that we missed markdown. |
Pinging @elastic/kibana-app (Team:KibanaApp) |
@stratoula asked:
Unfortunately not (in my 7.13.2 instance). |
I would be happy if 7.13.3 "unbroke" my existing TSVB Markdown panels that use the |
Interesting, I just created the .kibana index pattern with We should def fix the problem with markdown and no timefield present bug. Now about the .kibana problem, I am not sure if it is related to TSVB tbh. Using .kibana as an index pattern is quite hacky, I agree with you |
@stratoula wrote:
Back in 7.11.2, when I originally created the Now, in 7.13.2, in the Kibana UI, I went to Stack Management > Kibana: Index Patterns, and tried to find a way to specify that time field on the existing index pattern. I couldn't find a way to do that, so I deleted the index pattern, then re-created it, this time selecting I should have seen the next part coming, but it's late (11 PM local time), and I'm tired: when I returned to edit a TSVB Markdown viz that used that I can't see a way in the Kibana UI to edit the JSON definition of the index pattern to change its ID (if that's even possible) to match the original that I deleted. I could look into deleting the index pattern again, and this time re-creating it via an API call with a specific ID (if that's even possible), but... it's late. I'm giving up for the night. In case you're wondering: I haven't completely destroyed my environment doing this. I'm performing this work in a 7.13.2 "sandbox" Elastic Stack instance, completely separate from my still-working 7.11.2 instance and its saved objects. |
@GrahamHannington let me clarify, you are using I checked how the TSVB behaves in version It doesn't make much sense to return this hardcoded value because it will confuse the user more. |
I wrote:
The dashboard didn't allow me to edit the viz with that error, but I could edit it independently of the dashboard, via the saved objects list. Tired and. hence, a little reckless, I used the Kibana UI to "inspect" the underlying JSON definition of the TSVB Markdown viz, and replaced the original index pattern ID with the new ID. That worked: when I returned to a dashboard containing that viz, the Markdown content appeared! And, when I edited the viz from that dashboard, the Time field dropdown had been populated with the Moreover, the Markdown content now displays. Even better: the TSVB Markdown panel, even with that time field specified, doesn't seem to be affected by the global time filter. I specified a time filter spanning two days in 2001: while the "real" data-based visualizations displayed the message "No results found", the TSVB Markdown panel still displayed its contents. This is all good news. Do you have any tips on adding |
Yes. |
ok ... i think you can create a static
Please close that issue if my suggestion help you. |
@stratoula wrote:
Is this still your position? I ask because @alexwizp later wrote:
and I'm unsure whether that statement by @alexwizp affects (supersedes) the earlier statement by @stratoula. If you intend to fix the problem (with Markdown and no time field present) then I can simply wait for the fix without changing my saved objects. If you are not going to fix the problem, then I will need to change my saved objects. I'm not annoyed or anything (on the contrary, I sincerely appreciate your time): I'm just not clear on your position. To recap:
|
While I sincerely appreciate the suggestion, I strongly dislike the combination of creating a runtime field and having to edit each TSVB Markdown viz to specify that runtime field. In particular, creating a runtime field extends the scope of the existing kludge. I would much rather specify an existing field in the index pattern, such as As I've described, I've looked in vain in the Kibana UI for a way to directly edit the underlying JSON definition of an index pattern, in the same way that you can "inspect" and then edit the JSON of a visualization. So I've used the corresponding Kibana Update index pattern API:
where the file
That appears to have worked. (I originally thought it didn't, but that was user—my—error: I'd omitted the |
@GrahamHannington what I meant about the markdown and no timefield present: Your case is a bit different. You had created an index pattern without a timefield and it worked but this is not how TSVB should work. As Alexey said TSVB is based on date_histogram / auto_date_histogram aggregation. So as we have a workaround for your case I suggest only fixing the bug that I mentioned above. I hope I clarified what I meant :D |
Hi @stratoula , Understood, thanks for the clarification. For now, then, I'll go with the workaround: update the I look forward to not having to use TSVB to present custom-styled static Markdown. (For example, a fix for #13313, and preferably also #99740.) Thanks for your help! |
Any idea why this is the default? This broke most of our TSVB visualizations because filebeat-* is a Kibana index pattern not an Elasticsearch index. |
@nicpenning Yes, we now have a split between ES and Kibana indexes. From my point of view, this solved the most confusing part of TSVB and gave us the opportunity to add some features that are only available for Kibana indexes. |
I don't know why either 😞 that's what's confusing. |
ok... is it possible to share somehow your visualization configuration (screen or exported saved object)?. We can try to reproduce it locally based on filebeat index. |
I can try and do that for you. |
@alexwizp could you try the tsvb/dashboard from here? |
Kibana version: 7.13.2
Elasticsearch version: 7.13.2
Server OS version: Linux Ubuntu 20.04
Browser version: Google Chrome Version 91.0.4472.77 (Official Build) (64-bit)
Browser OS version: Microsoft Windows 10 Enterprise, Version 1909 (OS Build 18363.1556)
Original install method: Docker image (sebp/elk)
Describe the bug: In 7.13.1 and 7.13.2 (and possibly earlier), TSVB Markdown panels that use the
.kibana
index pattern (why? see "Any additional context") show "No results found", where, as recently as 7.11.2, they showed content.Steps to reproduce:
.kibana
as an index pattern in Kibana..kibana
, with no time field.Expected behavior: Such panels should show content, regardless of time range or filters, as they did in 7.11.2.
Screenshots:
This used to work (in 7.11.2):
(I'm deliberately not including custom-CSS-formatted Markdown content in this screenshot, because it contains proprietary terms.)
Any additional context:
I've developed a set of Kibana dashboards. At the top of each dashboard is a TSVB Markdown panel that contains a row of links to the dashboards. All of the dashboards refer to the same visualization; the same single saved object in the visualization library.
If the "standard" Markdown viz offered custom CSS, I wouldn't use a TSVB viz for this purpose. See issue #13313.
If Kibana offered a better way to present links to related dashboards, I wouldn't use a Markdown panel at all for this purpose. See issue #99740.
As it is, I have to use a TSVB viz, and that means specifying an index pattern, even for static Markdown content.
Filters that a user creates in one dashboard persist when they click a link to another dashboard. This is deliberate and desirable. However, the dashboards use different index patterns. Some fields are common across these index patterns, some aren't. So I've switched on the Kibana advanced setting
courier:ignoreFilterIfFieldNotInIndex
.Problem: The index pattern specified in the TSVB Markdown panel (of dashboard links) that is used in all of these dashboards can interfere with the behavior of that setting. For details, see the Elastic Kibana discussion forum topic "Omit pinned filters that are inappropriate to a dashboard?".
Workaround (worked in 7.11.2): Specify
.kibana
as the index pattern for the TSVB.Problem: This workaround no longer works in 7.13.1 and 7.13.2.
I want to present panels with static Markdown content formatted using custom CSS. That is all.
I don't want those panels to be affected by filters or time range. And I don't want such panels—in particular, the index patterns specified in TSVB Markdown panels—to affect the behavior or appearance of filters (again, for details, see "Omit pinned filters that are inappropriate to a dashboard?").
My other use cases for TSVB Markdown panels include "tiles" on a "home"/entrypoint dashboard for this set of dashboards. I don't want those tiles to be sensitive to filters or time range. They should always show their content.
I'm happy to acknowledge that specifying
.kibana
as the index pattern for these panels was a dirty workaround. But it used to work, and now it doesn't, and in 7.13.2 I'm left staring at "No results found" where in 7.11.2 I used to see custom-CSS-formatted content.The text was updated successfully, but these errors were encountered: