mirror of
https://github.com/dbarzin/pandora-box.git
synced 2025-07-18 21:09:41 +02:00
config file for rsyslog
This commit is contained in:
parent
73bd37a54e
commit
1c547df90c
2 changed files with 11 additions and 3 deletions
|
@ -70,9 +70,9 @@ You can configure Pandora-box in the _pandora-box.ini_ file :
|
||||||
|
|
||||||
## Logging
|
## Logging
|
||||||
|
|
||||||
Open the rsyslog config file located at /etc/rsyslog.conf:
|
Copy the rsyslog config file :
|
||||||
|
|
||||||
sudo vi /etc/rsyslog.conf
|
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:
|
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:
|
||||||
|
|
||||||
|
|
8
rsyslog.d/pandora-box.conf
Normal file
8
rsyslog.d/pandora-box.conf
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue