PostgreSQL
CentOS
1. postgresql.conf ์์
> ์ฌ์ Syslog ์ค์น ํ์
> Config ์์น ํ์ธ
[config ๊ฒฝ๋ก ์์] /var/lib/pgsql/9.6/data/postgresql.conf
[์์ ์์] # ERROR REPORTING AND LOGGING ํ๋จ์์ ์์
log_destination = โstderrโ ๋ผ์ธ์ ์ฃผ์์ฒ๋ฆฌ
log_destination = โsyslogโ ๋ผ์ธ ์ถ๊ฐ
# These are relevant when logging to syslog: ํ๋จ์ ๋ค์ 4๋ผ์ธ ์ฃผ์ ํด์
#syslog_facility = โLOCAL0โ
#syslog_ident = โpostgresโ
#syslog_sequence_numbers = on
#syslog_split_messages = on2. PostgreSQL ๋ฐ Syslog ์ฌ์์
๋ฒ์ ์ ๋ฐ๋ผ ์๋น์ค๋ช ์ด ๋ค๋ฅด๋ฏ๋ก ๋ฒ์ ํ์ธ
3. ๋ก๊ทธ ํ์ธ
๋ก๊ทธ ์์ : ์ ์ฒด๋ก๊ทธ > ํธ์คํธ

Ubuntu
1. postgresql.conf ์์
2. PostgreSQL ๋ฐ Syslog ์ฌ์์
3. ๋ก๊ทธ ํ์ธ
๋ก๊ทธ ์์ : ์ ์ฒด๋ก๊ทธ > ํธ์คํธ

Last updated