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

Feature request: Ability to specify collapse search field in Document Table #252

Open
koubessus opened this issue Feb 21, 2022 · 1 comment

Comments

@koubessus
Copy link

Hi @fbaligand ,

would it be possible to add "Collapse field" to document table? The idea is to be able to use collapsed search, i.e. to pick up a field to be used in search request:

{
  "query": {},
  "collapse": 
    {
      "field": "host.hostname"
    },
    "sort": {}
}

The most basic use case is also the most useful - when reporting state on a regular basis we want to show only the latest one (when sorted by timestamp).

Thanks.

@fbaligand
Copy link
Owner

Hi @koubessus,

This could be an enhancement.
That said, today, to answer your precise need, you can use "Enhanced Table", with:

  • a "Split Rows" bucket using a "Terms" aggregation based on "host.hostname"
  • For each column you wan to see, a "Top Hit" metric with sort based on "timestamp" field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants