I am using Centos 7.6 and have configured rsyslog server and able to send logs(syslog) from client to server, but I need to transfer the file /var/log/wtmp to rsyslog server and I have tried below configuration configuration but not working at all.
[server]
$template RemoteLogs,"/var/log/clients/%HOSTNAME%/%$NOW%.log"
*.* ?RemoteLogs
& ~
I have tried the below configuration but it is not transferring the file, Please help what is missing
[client]
module(load="imfile" PollingInterval="10") #needs to be done just once
# File 1
input(type="imfile"
File="/var/log/wtmp"
Tag="file:wtmp"
# StateFile="statefile1"
Severity="info")
Not working