From 1c547df90ccf3adffb3ebcc3d168573795b52d50 Mon Sep 17 00:00:00 2001 From: dbarzin Date: Fri, 10 Mar 2023 15:54:02 +0100 Subject: [PATCH] config file for rsyslog --- INSTALL.md | 6 +++--- rsyslog.d/pandora-box.conf | 8 ++++++++ 2 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 rsyslog.d/pandora-box.conf diff --git a/INSTALL.md b/INSTALL.md index f0a52c4..0d70183 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -70,9 +70,9 @@ You can configure Pandora-box in the _pandora-box.ini_ file : ## Logging -Open the rsyslog config file located at /etc/rsyslog.conf: - - sudo vi /etc/rsyslog.conf +Copy the rsyslog config file : + + sudo cp rsyslog.conf/pandora-box.conf to /etc/rsyslog.d Add the following line if you are using UDP, where 192.168.12.123 is the IP address of the remote server, you will be writing your logs to: diff --git a/rsyslog.d/pandora-box.conf b/rsyslog.d/pandora-box.conf new file mode 100644 index 0000000..6c682f6 --- /dev/null +++ b/rsyslog.d/pandora-box.conf @@ -0,0 +1,8 @@ +$ModLoad imfile +$InputFileName /var/log/pandora-box.log +$InputFileTag pandora-box: +$InputFileStateFile stat-pandora-box-info +$InputFileFacility local7 +$InputFileSeverity info +$InputRunFileMonitor +local7.info @@192.168.12.123:514