I took some time to get some experience with it as part of another ticket considering the openqa logs.
A PoC i run included just a normal installation. With this, I imply that the following was not covered so far:
The configuration can be on the host which run the workers. And it is quite simple, but i had to use syslog-ng in replace of /rsyslog/ (which AFAIR i didnt manage to make work in the beginning and i give up early in the process). In any case syslog-ng seems more simple and capable for its ancestor. So once i had install syslog-ng the only things it was required was add the following lines in the conf file. (i name it loghost.conf)
{{collapse(/etc/syslog-ng/conf.d/loghost.conf)
source s_loghost {
udp();
};
destination netmessages {
file("/var/log/messages.$HOST");
};
log {
source(s_loghost);
# filter(f_messages);
destination(netmessages);
}
The client side doesnt need to run syslog-ng. If you want to test local in a VM you can just add *.* @host_ip_of_the_remote_server
(note: single '@' for UDP) in /etc/rsyslog.d/remote.conf. And restart rsyslogd.service. This make just sure that the server works and can receive logs.
Now for OpenQA. the documentation is just give you one single boot argument. Run a job with the worker which the log server is set up and give its IP in the installation boot options
loghost=10.xx.xx.xx
Note that it doesnt need the port as it uses the default 415. The above, underneath, will run a script[0] which does pretty much exactly what we did above manually. Note that it seems to do that just for UDP (at least this is what i understand).
In my case(i cloned /create_hdd_hpc_textmode/), the remote logger started collect logs straight away. Logs contained mainly yast logs. One benefit of the loghost approach was that even if the file deleted, it is recreated.
Another side problem which i assume was related to the loghost, was that even when job was successful the job end up incomplete[1], showing that the API failed
The concern is how to make the logs to be represented per job. The setup in the logging server logged everything in a file per host. But i havent gone through all the documentation[2][3] to explore all the options.
Another thing is how to include other files, but everything seems possible IMO