How to create a markdown from a saved search or a metric


(David) #1

Hello,

How can I visualize a specific field (in this example the text field)
My data:
{
"_index": "in_memory_db_size",
"_type": "doc",
"_id": "ZozakmAB9EBpl5JA3w3b",
"_version": 1,
"_score": 1,
"_source": {
"node": "aio1",
"text": "21571",
"collection_id": "1000",
"rc": "0"
}
}

Currently I create a search and then visualize it, but I'd rather have some kind of label or a markdown, no scrollbars needed, only one column and row.
image


(Thomas Neirynck) #2

hi @davidv,

You're able to do this if you have a field that can serve as a unique identifier for that document. Then, you can do a Filters-aggregation and filter on that identifier.

For example, see below: Suppose clientip uniquely identifies my document, I can create a metric visualization that displays the bytes-value for that document.


(David) #3

Hi @thomasneirynck,

I had to change the field to integer and then it worked out.

Thank You.


(David) #4

Hi @thomasneirynck,

For other uses, Is it possible to create markdown visualization from a saved search or other query?
A markdown that will auto updated rather than hard coded.

Thanks,
David


(Thomas Neirynck) #5

hi @davidv,

The Time Series Visual Builder Visualization allows you to put in a single-valued variable inside a Markdown.

https://www.elastic.co/guide/en/kibana/current/_featured_visualizations.html#_markdown

Maybe that could help?


(David) #6

Thanks again @thomasneirynck.


(system) #7

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.