# I want to visualize the plots for thread level heap details

**URL:** <https://discuss.elastic.co/t/i-want-to-visualize-the-plots-for-thread-level-heap-details/195366>\
**Category:** Kibana\
**Created:** [August 15, 2019, 3:48pm UTC](https://discuss.elastic.co/t/i-want-to-visualize-the-plots-for-thread-level-heap-details/195366 "2019-08-15T15:48:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![satyam2593](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@satyam2593](https://discuss.elastic.co/u/satyam2593)\
**Post date:** [August 15, 2019, 3:48pm UTC](https://discuss.elastic.co/t/i-want-to-visualize-the-plots-for-thread-level-heap-details/195366/1 "2019-08-15T15:48:19Z")

</div>

i have the documents which contains the thread name, thread-id, cpu & memory details.. I want to plot the graphs for each individual thread for cpu as well as memory...  
My document looks like as follows  
@timestamp Sep 8, 2019 @ 11:43:21.344  
\*\* @version:1\*\*  
\*\* CPU\_Utilization: 50.4\*\*  
\*\* Memory\_Utilization:11.3\*\*  
\*\* Thread\_Id:7,066\*\*  
\*\* Thread\_Name:DestroyJavaVM\*\*  
\*\* \_id :mkt6lWwBLY3hcg1TvN1p\*\*  
\*\* \_index :threadlevelheap\*\*  
\*\* \_score - \*\*  
\*\* \_type :\_doc\*\*  
\*\* host :localhost.localdomain\*\*  
\*\* logdate: 08/09/19 09:13:21 344\*\*  
\*\* message:08/09/19 09:13:21 344|7066|DestroyJavaVM|0.0|11.3\*\*  
\*\* path:/usr/data/samplethread.txt\*\*  
Can any one suggest me how to visualize these plots for each thread level  
Note: my script is running for every 2 mins , which will give all thread level details at the same timestamp  
Example: Let us assume, when the script runs first time @ 08/15/19 9:00:10 it has given 130 threads with same time stamp

---

<div class="post-metadata">

**Author:** ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)\
**Post date:** [August 15, 2019, 10:20pm UTC](https://discuss.elastic.co/t/i-want-to-visualize-the-plots-for-thread-level-heap-details/195366/2 "2019-08-15T22:20:40Z")

</div>

Do you want to visualize this data over time? If so, create a new vis of the type you'd like, put a date histogram on the x-axis, and then create a sub-bucket with a terms agg on the thread id or thread name field. Then add the metrics you'd like to the y-axis and you should see those metrics per thread id/name.

---

<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:** [September 12, 2019, 10:20pm UTC](https://discuss.elastic.co/t/i-want-to-visualize-the-plots-for-thread-level-heap-details/195366/3 "2019-09-12T22:20:48Z")

</div>

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