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] Dashboard-plugin to view logs #6156

Open
SebastianThorn opened this issue Mar 15, 2024 · 6 comments
Open

[Feature Request] Dashboard-plugin to view logs #6156

SebastianThorn opened this issue Mar 15, 2024 · 6 comments
Labels
discover for discover reinvent enhancement New feature or request

Comments

@SebastianThorn
Copy link

Is your feature request related to a problem? Please describe.
OpenSearch does not have a simple way to view logs, it's often a hassle to check logs.

  • Columns don't get saved
    Every time a developer would like to search for logs the columns will reset for even horizontal distribution.
    The column needed are often the same over a variety of applications

  • The search patterns don't have an easy "drop-down" or search-function
    A built-in search or select would make this easier.

  • Much space is wasted on not showing logs
    The fields on the left should have a "drawer" or an easy way to hide.
    Use the entire width of browser for logs.
    Same goes for the graph, it should have a "hide" button.

I made an image to visualize some of what i'm trying to describe.
dashboard mockup

Describe the solution you'd like
More like what Graylog has, it's simple and clear. Log View Widget
graylog example

Describe alternatives you've considered
Modifying the current plugin.
Creating a new plugin for this usecase.

Additional context
I made a post on the forums some time ago, I did not get any response so I thought I try here.
https://forum.opensearch.org/t/view-logs-like-in-graylog/16877

This issue might also be somewhat releated: #5524

@SebastianThorn SebastianThorn added the enhancement New feature or request label Mar 15, 2024
@ashwin-pc ashwin-pc added discover for discover reinvent and removed untriaged labels Mar 19, 2024
@ashwin-pc
Copy link
Member

@SebastianThorn Can you explain what you mean by

The search patterns don't have an easy "drop-down" or search-function
A built-in search or select would make this easier.

@SebastianThorn
Copy link
Author

SebastianThorn commented Mar 20, 2024

@ashwin-pc
We have fixed tags for a number of fields, example environment,
Even tho they are fixed and the only known possibilities are dev, tst, and prd we have to type them.
A drop-down with pre-populated values dev, tst, and prd when selecting environment would be nice.

@ashwin-pc
Copy link
Member

@SebastianThorn still a little confused here. Sorry if i sound like im repeating myself. There are two search inputs on the discover page. Which one are you referring to. Also is there an example video or screenshot of such an interface?

@SebastianThorn
Copy link
Author

@ashwin-pc I'm sorry for the confusion, this part of Dashboards i'm referring to regarding the drop-down.

image

Would be easier if I could select the environment, instead of typing it.

This might explain better what i'm looking for: https://nileshpatel17.github.io/ng-multiselect-dropdown/

@ashwin-pc
Copy link
Member

Ah i see what you mean. This is already possible. However you have to index the field as a keyword and not a text field. See the example here: https://playground.opensearch.org/app/data-explorer/discover#?_a=(discover:(columns:!(_source),isDirty:!f,sort:!()),metadata:(indexPattern:ff959d40-b880-11e8-a6d9-e546fe2bba5f,view:discover))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_q=(filters:!(),query:(language:kuery,query:''))

The category field has two mappings, one as a keyword and one as a text field. Selecting the keyword makes it possible to have a dropdown that has prepolulated options
Screenshot 2024-05-14 at 7 13 03 PM

@SebastianThorn
Copy link
Author

Ah i see what you mean. This is already possible.
@ashwin-pc Great, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discover for discover reinvent enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants