Apache httpd error
1. conf 設定(rsyslog 使用)
# cd /etc/rsyslog.d/
# vi /etc/rsyslog.d/80-httpd.conf2. confファイルの作成
File = "ログ 経路", Tag = "タグ", Severity = "深刻度", programname ="プログラム名"vi /etc/rsyslog.d/80-httpd.conf#variables required for non-syslog log file forwarding – httpd error log file
#edit on your location
input(type=”imfile”
File=”/var/log/httpd/error_log”
Tag=”httpd”
Severity=”error”
Facility=”local7″)
###### Creates a template for each log file in the Logentries UI
### logic to apply the relevant templates to the different log files
if $programname == ‘httpd‘ then /var/log/plura/ceelog-127.0.0.1.log;CEETemplate
:programname, isequal, ‘httpd‘ stop3. rsyslog デーモン再起動
4. 探知確認

参考サイト
Last updated