# Elastic search aggregation not fetching complete Java trace

**URL:** <https://discuss.elastic.co/t/elastic-search-aggregation-not-fetching-complete-java-trace/269365>\
**Category:** Kibana\
**Created:** [April 6, 2021, 5:16pm UTC](https://discuss.elastic.co/t/elastic-search-aggregation-not-fetching-complete-java-trace/269365 "2021-04-06T17:16:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![suresh123](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@suresh123](https://discuss.elastic.co/u/suresh123)\
**Post date:** [April 6, 2021, 5:16pm UTC](https://discuss.elastic.co/t/elastic-search-aggregation-not-fetching-complete-java-trace/269365/1 "2021-04-06T17:16:55Z")

</div>

````
Hello Experts,

I have created Data Table visualization and API for aggregations to get the application logs.
It is fetching only 2 lines of log messages in the Data Table, if the log contains more than 3 lines example Java trace, not able to get the application log, but am able to view in Kibana dashboard (I added multiline pattern in Filebeat ....... of course).

**Below is the example**
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.ibm.db2.jcc.DB2Driver'
 at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:1136)
 at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
 at com.azurian.lce.usuarios.ConnectionManager.getConnection(ConnectionManager.java:65)
 at com.azurian.lce.usuarios.db2.UsuarioDAOImpl.autenticar(UsuarioDAOImpl.java:101)
 at com.azurian.lce.usuarios.UsuarioServiceImpl.autenticar(UsuarioServiceImpl.java:31)
 at com.azurian.lce.web.admin.actions.LoginAction.execute(LoginAction.java:49)
 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
```
````

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 6, 2021, 6:26pm UTC](https://discuss.elastic.co/t/elastic-search-aggregation-not-fetching-complete-java-trace/269365/2 "2021-04-06T18:26:52Z")

</div>

The stack trace does not show anything related to elasticsearch.  
Not sure what answer we could give here.

---

<div class="post-metadata">

**Author:** ![suresh123](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@suresh123](https://discuss.elastic.co/u/suresh123)\
**Post date:** [April 7, 2021, 1:13pm UTC](https://discuss.elastic.co/t/elastic-search-aggregation-not-fetching-complete-java-trace/269365/3 "2021-04-07T13:13:30Z")

</div>

Hi David,

Java trace is the longest stack, so not able to get into buckets key.  
------------ "key" : "here longest java trace should include", ----------------

Do I need to make any changes in Kibana advanced settings ?

Regards,  
Suresh

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [April 7, 2021, 1:26pm UTC](https://discuss.elastic.co/t/elastic-search-aggregation-not-fetching-complete-java-trace/269365/4 "2021-04-07T13:26:55Z")

</div>

Sounds like I misread your question!

I'm moving it to #elastic-stack:kibana as I believe it's a problem regarding how to display multilines of logs in Kibana.

---

<div class="post-metadata">

**Author:** ![suresh123](https://avatars.discourse-cdn.com/v4/letter/s/cdc98d/32.png) [@suresh123](https://discuss.elastic.co/u/suresh123)\
**Post date:** [April 7, 2021, 3:05pm UTC](https://discuss.elastic.co/t/elastic-search-aggregation-not-fetching-complete-java-trace/269365/5 "2021-04-07T15:05:47Z")

</div>

```auto
Hi David,

I got the solution. by increasing ignore_above: 256 in index mappings.

I need to work on this. Below is the reference doc      

https://discuss.elastic.co/t/column-too-large-for-kibana-data-table-display/110424/6 

Thank you so much. 

```

---

<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:** [May 5, 2021, 3:06pm UTC](https://discuss.elastic.co/t/elastic-search-aggregation-not-fetching-complete-java-trace/269365/6 "2021-05-05T15:06:25Z")

</div>

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