# How can I collect logs from a tomcat server?

**URL:** <https://community.graylog.org/t/how-can-i-collect-logs-from-a-tomcat-server/17073>\
**Category:** Graylog Central (peer support)\
**Created:** [September 7, 2020, 1:49pm UTC](https://community.graylog.org/t/how-can-i-collect-logs-from-a-tomcat-server/17073 "2020-09-07T13:49:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![elpedrop](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/elpedrop/32/7951_2.png) [@elpedrop](https://community.graylog.org/u/elpedrop)\
**Post date:** [September 7, 2020, 1:49pm UTC](https://community.graylog.org/t/how-can-i-collect-logs-from-a-tomcat-server/17073/1 "2020-09-07T13:49:11Z")

</div>

hello everyone,

How can I collect logs from a tomcat server? . Can it be done through rsyslog or do you have to install an nxlog client?

thanks for your help.

Regards,

---

<div class="post-metadata">

**Author:** ![bahram](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/bahram/32/4874_2.png) [@bahram](https://community.graylog.org/u/bahram)\
**Post date:** [September 8, 2020, 12:00pm UTC](https://community.graylog.org/t/how-can-i-collect-logs-from-a-tomcat-server/17073/2 "2020-09-08T12:00:51Z")

</div>

Hi elpedrop

There are many ways to do this  
For example  
NXLOG ==\>  
[https://nxlog.co/documentation/nxlog-user-guide/apache-tomcat.html](https://nxlog.co/documentation/nxlog-user-guide/apache-tomcat.html)  
Filebeat ==\>  
[https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-overview.html](https://www.elastic.co/guide/en/beats/filebeat/current/filebeat-overview.html)

/var/log/tomcat\*/\*

---

<div class="post-metadata">

**Author:** ![elpedrop](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/elpedrop/32/7951_2.png) [@elpedrop](https://community.graylog.org/u/elpedrop)\
**Post date:** [September 8, 2020, 2:42pm UTC](https://community.graylog.org/t/how-can-i-collect-logs-from-a-tomcat-server/17073/3 "2020-09-08T14:42:23Z")

</div>

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

---

<div class="post-metadata">

**Author:** ![bahram](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/bahram/32/4874_2.png) [@bahram](https://community.graylog.org/u/bahram)\
**Post date:** [September 8, 2020, 3:31pm UTC](https://community.graylog.org/t/how-can-i-collect-logs-from-a-tomcat-server/17073/4 "2020-09-08T15:31:20Z")

</div>

Yes of course  
[https://nxlog.co/products/nxlog-community-edition/download](https://nxlog.co/products/nxlog-community-edition/download)  
[https://nxlog.co/documentation/nxlog-user-guide/deploy\_debian.html](https://nxlog.co/documentation/nxlog-user-guide/deploy_debian.html)

---

<div class="post-metadata">

**Author:** ![bahram](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/bahram/32/4874_2.png) [@bahram](https://community.graylog.org/u/bahram)\
**Post date:** [September 9, 2020, 8:23am UTC](https://community.graylog.org/t/how-can-i-collect-logs-from-a-tomcat-server/17073/6 "2020-09-09T08:23:26Z")

</div>

it’s easy, please exactly read this document

[https://nxlog.co/documentation/nxlog-user-guide/deploy\_debian.html](https://nxlog.co/documentation/nxlog-user-guide/deploy_debian.html)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/graylog/original/3X/c/7/c7c09c6b5099570133d6502b83f50ba4430de5b6.png) [@system](https://community.graylog.org/u/system)\
**Post date:** [September 23, 2020, 8:23am UTC](https://community.graylog.org/t/how-can-i-collect-logs-from-a-tomcat-server/17073/7 "2020-09-23T08:23:28Z")

</div>

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