# Combining application/aop log and tomcat log

**URL:** <https://discuss.elastic.co/t/combining-application-aop-log-and-tomcat-log/43689>\
**Category:** Logstash\
**Created:** [March 7, 2016, 6:52pm UTC](https://discuss.elastic.co/t/combining-application-aop-log-and-tomcat-log/43689 "2016-03-07T18:52:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbkumar88](https://avatars.discourse-cdn.com/v4/letter/r/ec9cab/32.png) [@rbkumar88](https://discuss.elastic.co/u/rbkumar88)\
**Post date:** [March 7, 2016, 6:52pm UTC](https://discuss.elastic.co/t/combining-application-aop-log-and-tomcat-log/43689/1 "2016-03-07T18:52:39Z")

</div>

Hi,

I have a requirement to capture a single record/document in ES for each SSO hits we receive. I have a separate aop logging file (with user information/fields/timestamp) and also a separate tomcat log file (parseable by COMBINEDAPACHELOG pattern).

Is there any way I can combine both as a single document with information from both aop and tomcat logs and create a single record for each SSO hit with all information.

e.g, user1\_03-07-2016-11.52.23 as id field in ES with all the information together

Thanks  
Bharath

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [March 7, 2016, 6:58pm UTC](https://discuss.elastic.co/t/combining-application-aop-log-and-tomcat-log/43689/2 "2016-03-07T18:58:30Z")

</div>

Have a look at the [collate filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-collate.html).

---

<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 6, 2017, 5:08am UTC](https://discuss.elastic.co/t/combining-application-aop-log-and-tomcat-log/43689/3 "2017-07-06T05:08:08Z")

</div>


