I have a service, for example :
[Unit]
Description=My app
PartOf=myorg.target
After=network-online.target
[Service]
Type=notify
User=myuser
NotifyAccess=main
ExecStart=/usr/bin/my_app
Restart=always
RestartSec=1s
[Install]
WantedBy=myorg.target
Alias=myapp.service
Its logs are visible in journalctl
. One log example :
Feb 16 08:32:11 mycomputer-0013952a677a hapic[410613]: TheLogMessage
Format look like :
<date> <hostname> <logger name>[<thread id>]: <message>
How can I configure this format ? My goal is to add the service alias in log format.