An excerpt from smartd manpage reads:

-l FACILITY, --logfacility=FACILITY
Uses syslog facility FACILITY to log the messages from smartd. Here FACILITY is one of local0, local1, ..., local7, or daemon [default]. If this command-line option is not used, then by default messages from smartd are logged to the facility daemon.

Followed by steps how to accomplish this on a syslog based system.

Apparently, if Arch Linux is up-to-date, it runs journald in conjunction with systemd for the same purpose. For the latter, I cannot find a way to configure facilities or whatnot.

How to give smartd a logfile of it's own in a journald environment?

Mirrored from Arch Linux forums.

  • Maybe a chance: you can run a "normal" logging system which supports facility as I do. Is it acceptable for you or have any reason to avoid all other logging system? – uzsolt Aug 7 '13 at 7:54
  • Well, Arch Linux and majority of it's packages are now based around journald. While they allow to run syslog in parallel to journald, I wanted to avoid the solution. Just for the sake of keeping everything concise. – joltmode Aug 7 '13 at 7:57
  • I'm using metalog with facilities (because own scripts run 'logger -t' to logging) and it works well (parallel with journald). – uzsolt Aug 7 '13 at 8:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.