# Graylog and tomcat

**URL:** <https://community.graylog.org/t/graylog-and-tomcat/5598>\
**Category:** Graylog Central (peer support)\
**Created:** [June 13, 2018, 3:59pm UTC](https://community.graylog.org/t/graylog-and-tomcat/5598 "2018-06-13T15:59:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nabil.lamichhane](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nabil.lamichhane](https://community.graylog.org/u/nabil.lamichhane)\
**Post date:** [June 13, 2018, 3:59pm UTC](https://community.graylog.org/t/graylog-and-tomcat/5598/1 "2018-06-13T15:59:44Z")

</div>

I am new to Tomcat and Graylog… I dont have depth knowledge about both Tomcat and graylog… I want to read tomcat log in graylog … how can i achieve that… I want to learn and do my above task successfully… Any one have time to guid me littel bit in this topic… I dont know where to start from… i want some guidance…

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [June 13, 2018, 4:03pm UTC](https://community.graylog.org/t/graylog-and-tomcat/5598/2 "2018-06-13T16:03:03Z")

</div>

> [@Integrate Tomcat logs to graylog](https://community.graylog.org/t/integrate-tomcat-logs-to-graylog/5562/2):
>
> You can either collect the log files written by Apache Tomcat via Filebeat or NXLOG (also see [http://docs.graylog.org/en/2.4/pages/collector\_sidecar.html](http://docs.graylog.org/en/2.4/pages/collector_sidecar.html)) or configure the logging subsystem of your Apache Tomcat to send logs directly to Graylog, e. g. with a GELF appender: [https://github.com/mp911de/logstash-gelf/](https://github.com/mp911de/logstash-gelf/)[https://tomcat.apache.org/tomcat-9.0-doc/logging.html](https://tomcat.apache.org/tomcat-9.0-doc/logging.html)

---

<div class="post-metadata">

**Author:** ![nabil.lamichhane](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nabil.lamichhane](https://community.graylog.org/u/nabil.lamichhane)\
**Post date:** [June 13, 2018, 4:17pm UTC](https://community.graylog.org/t/graylog-and-tomcat/5598/3 "2018-06-13T16:17:29Z")

</div>

can i achive this task in vmware work station?.. i have configured one centos 7 machine as tomcat and another as graylog server

---

<div class="post-metadata">

**Author:** ![jochen](https://sea2.discourse-cdn.com/flex016/user_avatar/community.graylog.org/jochen/32/8_2.png) [@jochen](https://community.graylog.org/u/jochen)\
**Post date:** [June 13, 2018, 4:40pm UTC](https://community.graylog.org/t/graylog-and-tomcat/5598/4 "2018-06-13T16:40:47Z")

</div>

> [@nabil.lamichhane](#):
>
> can i achive this task in vmware work station?

Yes, it doesn’t matter on what type of (virtual) machine Graylog and Apache Tomcat are running in order to configure them correctly.

---

<div class="post-metadata">

**Author:** ![nabil.lamichhane](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@nabil.lamichhane](https://community.graylog.org/u/nabil.lamichhane)\
**Post date:** [June 13, 2018, 4:56pm UTC](https://community.graylog.org/t/graylog-and-tomcat/5598/5 "2018-06-13T16:56:36Z")

</div>

All following commands should be executed on the remote machine where you want to collect log data from.  
This line is from document you have provided… i have to install sidecar\_collecter in tomcat(centos 7) server or graylog(centos 7) server?

---

<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:** [June 27, 2018, 4:56pm UTC](https://community.graylog.org/t/graylog-and-tomcat/5598/6 "2018-06-27T16:56:37Z")

</div>

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