Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • According to this Answer, add directives with file path syntax like StandardOutput=file:/home/user/log1.log, or StandardOutput=append:/home/user/log1.log. Commented Feb 25, 2023 at 3:45
  • @JamesThomasMoon Please read my question again. You will notice that append is covered there and why I would not like to use it. Commented Feb 25, 2023 at 22:53
  • You tried StandardOutput=syslog for syslog. The recommend syntax for is StandardOutput=file:/home/user/log1.log. Commented Feb 26, 2023 at 5:12
  • ... so I will explain again - append is useless considering my needs - it depends on application raw output so there is no timestamp and application identifier. That's why I want to go with syslog. Proposed file is similar to append , second one will not delete content of log between service restarts. Anyway - both append and file need scripting inside ExecStart or application output change. That is why I do not want to go with it. I will modify my question to point it clearly. Commented Feb 26, 2023 at 9:10