Using the command:
/usr/bin/journalctl -o short -f | ncat {some-ip} {some port}
To forward journal output to some remote log tracking app.
Problem is that I'm missing the systemd unit / service name in the printout making it hard to tell which service produces what log line.
for example this is a nginx line :
Jun 25 07:51:09 localhost bash[497]: 10.23.132.98 - - [25/Jun/2014:07:51:09 +0000] "GET /page.html HTTP/1.1" 200 321 "https://{ip}" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36"
In the log there is bash[497] - the PID of the process. How can I add more data to the log ? For example the docker container name of this PID or the systemd service/unit name ?