Skip to content
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

Add support for selecting saved searches visualization editors #11737

Closed
Tracked by #57712
eprothro opened this issue May 11, 2017 · 27 comments
Closed
Tracked by #57712

Add support for selecting saved searches visualization editors #11737

eprothro opened this issue May 11, 2017 · 27 comments
Labels
Feature:Lens Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@eprothro
Copy link

TSVB is fantastic.

However, in a real-world ELK stack, the decoupling achieved by tying visualizations to saved searches is critical for maintainability.

Would be excellent to have the ability to select a saved search for the TSVB, as with any other visualization.

Gherkinized, what I would hope to see:

Given that I'm creating a new visualization
When I select TVSB
Then I can choose a an index or a saved search
And that saved search populates the Series Panel filter
And that saved search or index populates the Series Index Pattern

When I add a new series
Then I can choose a an index or a saved search
And that saved search populates the new Series' Panel filter
And that saved search or index populates the new Series' Index Pattern

@cjcenizal cjcenizal added Feature:TSVB TSVB (Time Series Visual Builder) Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels May 15, 2017
@leonardoaranda
Copy link

+1

@parisamir
Copy link

This would be really appreciated.

@priyasubburaj
Copy link

+1

@TRISAF
Copy link

TRISAF commented May 17, 2018

+1

2 similar comments
@raj467690
Copy link

+1

@mrkjellqvist
Copy link

+1

@timroes timroes added Team:Visualizations Visualization editors, elastic-charts and infrastructure and removed Feature:Visualizations Generic visualization features (in case no more specific feature label is available) labels Sep 16, 2018
@mazherChoudhury
Copy link

+1

@willemdh
Copy link

Without this functionality, using tsvb visualisations in dashboards containing other visualisations linked to saved searches, become inconsistent when the saved search would change. Every tsvb visualisation panel filter in a dashboard would have to be updated separately with every saved search change.

@digressionary
Copy link

  • 1

@TheSecMaven
Copy link

+1

2 similar comments
@joniba
Copy link

joniba commented Jul 29, 2020

+1

@MakoWish
Copy link

+1

@ghudgins ghudgins changed the title Add support for selecting saved searches to Time Series Visual Builder (TSVB) Add support for selecting saved searches visualization editors Dec 7, 2021
@thoma01
Copy link

thoma01 commented Dec 8, 2021

+1 From the team at Hitachi ID Systems

@bradvido
Copy link

+1 from a guy that prefers to change things in one place

@dej611
Copy link
Contributor

dej611 commented Aug 21, 2024

It is possible to replicate the same behaviour using a saved query in Lens.

@dej611 dej611 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 21, 2024
@MakoWish
Copy link

A lot of interest in this, and it is closed as "not planned"?? Elastic is more and more not seeming to care about community input. That is upsetting!

@MakoWish
Copy link

MakoWish commented Aug 21, 2024

It is possible to replicate the same behaviour using a saved query in Lens.

It is not possible. Updating a Saved Query does not update any visualizations that were based on that Saved Query. This has been discussed in depth before. There needs to be a way to link TSVB's and Lens visualizations to a "Saved Search". There is no existing workaround.

2024-08-21_10-21-18.mp4

@teresaalvarezsoler
Copy link

@MakoWish thanks for your input.

TSVB is considered legacy and it will be deprecated in the future (when we add some of its missing functionality into Lens) so we will not add any new functionality to it. If there are any features you are missing from TSVB in Lens please let us know so we can discuss adding them.

Regarding the request to apply Saved Searches for Lens, I reopen this other issue #55896. However, we need to think how this works with ES|QL saved searches because that's the future so how we implement this will likely change in the near term.

@MakoWish
Copy link

If there are any features you are missing from TSVB in Lens please let us know so we can discuss adding them.

Data-driven Markdown capabilities with CSS. I have literally hundreds of TSVB visualizations with CSS-styled, data-driven Markdown.

@markov00
Copy link
Member

markov00 commented Oct 1, 2024

Hey @MakoWish, could you share a bit more about the type of CSS style you are applying in your Markdown? It would be great to understand the details of that styling and the reason for it.

Thanks

@MakoWish
Copy link

MakoWish commented Oct 1, 2024

To explain the "hundreds" or TSVB's... we have 11 Spaces for 11 different teams within our IT department, and in total, we have somewhere in the ballpark of around 100 data sources feeding into Elastic. Each of those ~100 data sources have a set of dashboards, but the "landing" dashboard for each of those is an "Overview" of sorts. That overview details how many of each type of events exist using a Markdown TSVB that mimics a "Legacy Metric" visualization. Where TSVB goes beyond the Legacy Metric visualization is creating a custom hyperlink to the dashboard detailing the metric. Here is a sample screenshot of the "Overview" dashboard for our DLP solution:

Image

Each of those metrics within the red box is a Markdown TSVB that is also a hyperlink to the respective details dashboards. For instance, if you click on the "2,898,230 File Events" metric, it will take you to a dashboard detailing those file events.

Here is the CSS applied to all of these "Metrics" being done via Markdown TSVB:

& {
    text-align: center;
    h1 {
        margin-top: 0px;
        margin-bottom: 0px;
    }
    a {
        text-decoration: none;
    }
}

And the Markdown itself where file_events is a Count of event.dataset: file:

# [**{{file_events.last.formatted}}**](../app/dashboards#/view/c22debf0-32ba-56ea-8950-499d2222a0a8 "Xxxxxxx File Events")
[{{file_events.label}}](../app/dashboards#/view/c22debf0-32ba-56ea-8950-499d2222a0a8 "Xxxxxxx File Events")

As mentioned, we have literally hundreds of these throughout our environment, so if TSVB's Markdown is ever deprecated/removed, it will destroy our entire five years' worth of dashboard design. Regardless of whether or not TSVB is ever deprecated, I know the push is to use Lens, so it would be nice to replicate this in Lens with data-driven, CSS-styleable Markdown.

@teresaalvarezsoler
Copy link

@MakoWish Thank you very much for the detail explanation, this is super useful for us. We will indeed consider all these feature gaps that currently exist and try to make the transition as smooth as possible and include as much automation as possible to avoid a lot of work on your end to migrate.

@teresaalvarezsoler
Copy link

@MakoWish after taking another look at this, we are realising some styling options in 8.16 for the metric in Lens that will provide a similar look to what you have in TSVB. You can also use the "Go to URL" Drilldowns to navigate to another dashboard when clicking in the metric so most of these things are already provided unless we are missing anything.
Image Image

@MakoWish
Copy link

MakoWish commented Oct 2, 2024

Drilldowns are cumbersome and not a good replacement for a clickable visualization like I detailed above. We have tried on several occasions, and our users have had nothing but negative feedback on drilldowns, so we no longer even attempt to use those since TSVB's markdown provides a perfectly-functioning solution.

@teresaalvarezsoler
Copy link

thanks @MakoWish. It would be very useful if you can elaborate the exact issues you had with drilldowns. The "Got to URL" option with a "Single click" should work exactly the same as the links you have in Markdown.

Image

@MakoWish
Copy link

MakoWish commented Oct 3, 2024

I just tested creating a drill-down as you illustrated on a Legacy Metric (via Lens). The cursor does not change to a hand (indicating a link), clicking does nothing, and I see no options in the visualization's context menu for anything related to a drill-down unless I go to Edit mode on the dashboard. In Edit mode, I get the option to create or manage drill-downs, but in view mode, this does nothing.

EDIT: I tried both the "Legacy Metric" in Lens, as well as the "Metric" in lens (even though I do not like that you cannot center the text and value like the "Legacy Metric", and neither case worked as you are describing.

In addition to this use-case, we have some complex CSS-styled, data-driven "Landing" pages with embedded images that cannot be replicated outside of TSVB. Here is one of those examples:

Image

The company logo is embedded via Base64:

Image

To note... we are Platinum customers, so if you would like to jump on a call to see our use cases, please let me know, and we can schedule a meeting. Again, the CSS-styleable, data-driven Markdown is very useful for us, and it cannot [yet] be replicated outside of TSVB.

@teresaalvarezsoler
Copy link

Thanks @MakoWish, yes, let's organize a call. I contacted the account executive to schedule it.

The cursor does not change to a hand (indicating a link), clicking does nothing, and I see no options in the visualization's context menu for anything related to a drill-down unless I go to Edit mode on the dashboard. In Edit mode, I get the option to create or manage drill-downs, but in view mode, this does nothing.

This can happen if you input a URL with the wrong format e.g., if you insert www.elastic.co the link won't work, you need to write the full URL like this https://www.elastic.co. We have an open issue to validate the format that will be worked on soon #163641

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens Feature:TSVB TSVB (Time Series Visual Builder) Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests