问题
I'm testing Kibana 4 for a project.
I have created an index from my database table which is composed by 3 fields:
- Date
- User
- Action
I would like to display my index as a simple table (3 column, N rows) in my dashboard.
I tried to use "Data table" visualization but I can't find a way to display my results without any Metrics (Count, Sum etc...)
Maybe is pretty simple and I missed something... is there a way to do this?
Regards,
回答1:
On the Discover tab, create a view that has just the fields you want and then save that as a search.
On the Dashboard tab, hit the + button to add a widget, but if you look at the top, there's a Searches tab. Select that and add your saved search in.
回答2:
[Elastic 7.x / 2019 Update]
I was a bit confused when I read @Alcanzar's answer so I am sharing a little more noob-friendly step-by-step how-to here :
- STEP 1 : Create the Index Pattern
- STEP 2 : Go to the Dashboard view, and create a view on your index
Select each column you want to include/add in your view by clicking "add" on it (The confusing part is that until you do that, you will have a "scrambled" view listing everything in a jumbled way.)
- STEP 3 : Go to the Dashboard view, and create a view on your index
The trick is to select the specific columns you want to include... and voila !
Don't forget to save your view, this will help a lot in the process.
来源:https://stackoverflow.com/questions/29671524/kibana-how-to-display-log-as-table