I have configured rsyslogd Log Server With Elasticsearch and Kibana. I am able to forward the /var/log/messages from the client Linux servers (CentOS 7, RHEL 6) to the central Linux Log server (CentOS 7).
However, I have a custom log file (eg:/var/log/usercommands) in all client servers, which needs to be forwarded to the central Log server. This log file records all commands executed by all users in the respective client server via command line. I have added below rule to forward the logs from clients to server. But, with the below rule, my custom log file (/var/log/usercommands) is not getting forwarded to central Log server.
*.* @@remotehost:514
Any help on what configuration need to be added to rsyslogd.conf of the clients to forward this custom log file as well to central Log server?