Answer the question
In order to leave comments, you need to log in
How to redirect systemd service logs to a file?
Hello!
I needed to send the logs of several systemd services into one file
tried to do this
StandardOutput=append:/var/log/current.log
StandardError=append:/var/log/current.log
append:path is similar to file:path above, but it opens the file in append mode.
Failed to parse output specifier, ignoring: append:/var/log/current.log
Answer the question
In order to leave comments, you need to log in
Try to create two streams in your PL (or run two scripts at the same time) and write from them to one file
Write to different files, and when analyzing combine them, sort by the datetime field
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question