I know there are alot of topics like this one but i have a particular need: I need to send all the logs from linux servers to a central loggin server.
Problem 1: On the central server i need to store the logs in the following format:
<root_dir>/<server_name>/<year>/<month>/<day>/{messages, mail, auth, httpd, etc}.log (the exact original file name of the log file)
The rsyslog server conf is
$template RemoteHost,"/var/log/remotes/%HOSTNAME%/%$YEAR%/%$MONTH%/%$DAY%/%PROGRAMNAME%.log" which creates the folder structure ok but for some logs it doesn't work (httpd logs)
Problem 2: I need to send ALL logs. On the remote servers (centOS) i configured the classic
*.* @@<central-server-hostname>:5544
but i see that httpd logs are not send (i thing it is because the filter is . and httpd logs are named like "httpd_acces" and does not match the filter.
Do you know if this is possible?