Hello,
I am not Linux admin and a support person. So, I cannot be responsible....
Here is my conf file in my test environment.
----------------------------------------------------------------------------
/etc/rsyslog.conf
Add the following line:
Code: Select all
global(workDirectory="/var/lib/rsyslog")
/etc/rsyslog.d/nagioslogserver_xxxxxxxxx.conf
* Create a new conf file.
Code: Select all
# Default Settings
$PrivDropToGroup adm
# Load Modules
module(load="imfile")
# rsyslog ruleset
ruleset(name="nagiosls") {
action(type="omfwd"
target="xxx.xxx.xxx.xxx" # NLS Server IP Address
port="5544"
protocol="tcp" )
}
# rsyslog Input Modules
input(type="imfile"
tag="xxxx:" # TAG info
file="/xxx/xxx/xxx.*" # File Path (you can use wild card(*))
persistStateInterval="20000" # Please tune the interval
severity="notice" # Please tune the level
ruleset="nagiosls")
------------------------------------------------------------------
I'm not sure whether the above sample is proper in your environment.
Please read rsyslog documentation.
http://www.rsyslog.com/doc/v8-stable/co ... mfile.html
I hope everything works out...