Apache httpd error
1. conf ์ค์ (rsyslog ์ฌ์ฉ)
80-httpd.conf > conf ํ์ผ ์์ฑํ๊ธฐ
cd /etc/rsyslog.d/
vi /etc/rsyslog.d/80-httpd.conf
2. 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โ stop
2-1. repo ์์ ๋ค์ด๋ก๋ ๋ฐ๊ธฐ
wget https://repo.plura.io/v5/module/rsyslog/80-httpd.conf
curl https://repo.plura.io/v5/module/rsyslog/80-httpd.conf -o /etc/rsyslog.d/80-httpd.conf
3. rsyslog ๋ฐ๋ชฌ ์ฌ์์
service rsyslog restart
4. ํ์ง ํ์ธ
๋ก๊ทธ ์์ : ์ ์ฒด๋ก๊ทธ > ํธ์คํธ

์ฐธ๊ณ ์ฌ์ดํธ
https://www.rsyslog.com/doc/v8-stable/configuration/modules/imfile.html
Last updated