Tomcat catalina.outログ
シナリオは下記の通りです。

1. クライアント: Tomcat8のcatalina.out
環境: CentOS 6 (64ビット), Rsyslog 5.8.10
1-1. rsyslog.confダウンロード
# curl -s https://repo.plura.io/v5/module/rsyslog/v5-stable/00-imfile.conf -o /etc/rsyslog.d/00-imfile.conf
# curl -s https://repo.plura.io/v5/module/rsyslog/v5-stable/80-tomcat.conf -o /etc/rsyslog.d/80-tomcat.conf
1-2. rsyslog.conf remote rsyslogサーバーに転送修正
# vi /etc/rsyslog.d/80-tomcat.conf
1-3. rsyslog restart
# service rsyslog restart
1-4. サーバー接続debug
# nc -zu PLURA_Log_Collector_Server 514
2. サーバー
환경 : CentOS 7, Rsyslog 8.2010.0
2-2. Remote クライアントのsyslog転送オープン
# firewall-cmd –add-port 514/udp
# firewall-cmd –reload
2-3. パスにファイル受信可否確認
# ls -al /var/log/plura/
内部ブログ
https://docs.plura.io/ja/agents/siem/uplc/application-log-plc
外部参考サイト
https://www.rsyslog.com/doc/v5-stable/configuration/modules/imfile.html
https://www.rsyslog.com/doc/v8-stable/configuration/modules/imfile.html
http://linuxsysconfig.com/how-to-configure-remote-logging-on-rhel6-centos6/
Last updated