# How to create pie chart for Tomcat logs

**URL:** <https://discuss.elastic.co/t/how-to-create-pie-chart-for-tomcat-logs/188614>\
**Category:** Kibana\
**Created:** [July 3, 2019, 6:13am UTC](https://discuss.elastic.co/t/how-to-create-pie-chart-for-tomcat-logs/188614 "2019-07-03T06:13:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandra85](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Chandra85](https://discuss.elastic.co/u/Chandra85)\
**Post date:** [July 3, 2019, 6:13am UTC](https://discuss.elastic.co/t/how-to-create-pie-chart-for-tomcat-logs/188614/1 "2019-07-03T06:13:28Z")

</div>

Hi

I have successfully used logstash to import tomcat logs and Able to create visual builder and I'm able to see logs aslo

Now I'm Unable to create pie chart with the filters with "error" and "message" . I want to show it in " Pie chart " with percentage of Errors and messages

My logstash filter :-  
[root@hostname conf.d]# cat filter.conf  
filter {  
if [type] == "log" {  
grok {  
match =\> { "message" =\> "%{TOMCATLOG}" }  
}  
date {  
match =\> ["timestamp", "yyyy-mm-dd HH:mm:ss Z"]  
}  
}  
}

[root@hostname conf.d]# cat input.conf  
input {  
file {  
type =\> "log"  
path =\> ["/data1/wso2is-5.3.0/repository/logs/\*.log"]  
start\_position =\> "beginning"  
}  
}

[root@hostname conf.d]# cat output.conf  
output {  
elasticsearch {  
hosts =\> ["elasticsearchIp:9200"]  
}

}

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [July 3, 2019, 4:13pm UTC](https://discuss.elastic.co/t/how-to-create-pie-chart-for-tomcat-logs/188614/2 "2019-07-03T16:13:33Z")

</div>

> Now I'm Unable to create pie chart with the filters with "error" and "message" . I want to show it in " Pie chart " with percentage of Errors and messages

Would you mind elaborating on the structure of the documents which are stored in Elasticsearch? Your logstash filter doesn't provide enough information for me to determine how to create a pie chart which will given you the information you're looking for.

---

<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:** [July 31, 2019, 4:14pm UTC](https://discuss.elastic.co/t/how-to-create-pie-chart-for-tomcat-logs/188614/3 "2019-07-31T16:14:20Z")

</div>

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