# Need help to build visualisation in kibana

**URL:** https://discuss.elastic.co/t/need-help-to-build-visualisation-in-kibana/199944
**Category:** Kibana
**Created:** [September 18, 2019, 8:00am UTC](https://discuss.elastic.co/t/need-help-to-build-visualisation-in-kibana/199944 "2019-09-18T08:00:33Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Vikas\_Thakur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_thakur/32/51800_2.png) [@Vikas\_Thakur](https://discuss.elastic.co/u/Vikas_Thakur)
#### Post date: [September 18, 2019, 8:00am UTC](https://discuss.elastic.co/t/need-help-to-build-visualisation-in-kibana/199944/1 "2019-09-18T08:00:33Z")

</div>

Hi Team,  
I am new to ELK stack. Need help to build visualisation in kibana.

Example of logs:-

[13.09.19 12:56:09:824 CEST] 0000005c SystemOut 12:56:09.824 [Default Executor-thread-31] INFO AdapterImpl - {  
"type" : "RESPONSE\_TIME",  
"message" : null,  
"userId" : "1456456",  
"userName" : "user",  
"customerId" : "1234123",  
"serviceEndpoint" : "[http://abc.com](http://abc.com)",  
"serviceMethod" : "findproduct",  
"status" : "success",  
"duration" : "143 ms"  
}

I have inserted custom logs in my application for response of different web services. I need to build a visualisation having count of all logs with status "success" and "fail" corresponding to particular serviceEndpoint.

For example:

Service End Point Success Fail

[http://abc.com](http://abc.com) 10 2

Kindly help how to proceed with this.

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [September 18, 2019, 8:14am UTC](https://discuss.elastic.co/t/need-help-to-build-visualisation-in-kibana/199944/2 "2019-09-18T08:14:08Z")

</div>

Hi @Vikas_Thakur,

The most straight-forward way to do that is to create a table visualization with 3 columns: service endpoint, status, document cound. You can do that with the "Data table" visualization. Just go to "Visualize" and create a new data table visualization there. Then add a terms aggregation in the buckets section for the split by service end point and another terms aggregation for split by status.

The resulting data table will look like this:

"Service End Point" "Status" "Count"

[http://abc.com](http://abc.com) success 10  
[http://abc.com](http://abc.com) fail 2

 ![06](https://us1.discourse-cdn.com/elastic/original/3X/3/4/34bd0dbf6c200ad768e8916435162839e460de99.png)

---

<div class="post-metadata">

### Author: ![Vikas\_Thakur](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vikas_thakur/32/51800_2.png) [@Vikas\_Thakur](https://discuss.elastic.co/u/Vikas_Thakur)
#### Post date: [September 18, 2019, 8:45am UTC](https://discuss.elastic.co/t/need-help-to-build-visualisation-in-kibana/199944/3 "2019-09-18T08:45:39Z")

</div>

While using term aggregation in bucket section, the specific value serviceEndPoint and status are not available. Can you please expand the view and send show me.

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [September 18, 2019, 9:55am UTC](https://discuss.elastic.co/t/need-help-to-build-visualisation-in-kibana/199944/4 "2019-09-18T09:55:50Z")

</div>

If you are using the default mapping, then `serviceEndpoint` and `status` are indexed as text fields, but the terms aggregation only works on keyword-indexed fields. You should be able to use `serviceEndpoint.keyword` and `status.keyword` for the terms aggregation though - These fields are automatically generated by elasticsearch and are the keyword-indexed version of the actual field of your ingested data.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [October 16, 2019, 9:55am UTC](https://discuss.elastic.co/t/need-help-to-build-visualisation-in-kibana/199944/5 "2019-10-16T09:55:51Z")

</div>

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