4

I've been trying to diagnose a problem with a MacBook that won't NetBoot off my Mac Mini server running MacOS X Server 5.2 and macOS Sierra. However it proved to be rather difficult when I came to actually looking at the server log files as aside from the server log they were totally empty, and the server log seemed to be lacking anything useful at all.

After some digging around on the Apple site I came across this post which suggests that Apple have changed the logging system on macOS Sierra, and certainly following the instructions there I can find the logs, but they're still not viewable through the server app, and the official Apple server documentation still talks about logs going into the traditional log files.

Is there any more detail or documentation anywhere on the new logging system, or how to get it to play nicely with the server application?

2

Most of the logging that was being redirected into custom log files has defaulted back to the system log. As was mentioned in the post you referenced, the log command (man log) is the best way to access the information.

For netboot issues, looking at log messages from bootpd & tftp should give you useful info.

log stream --predicate  '(process == "bootpd") || (process == "tftp")' -info
  • Thanks - I did manage to diagnose the problem with the netboot once I'd found the log command in the above link. The problem is much more that currently the Apple documentation online doesn't even mention the new log, and the server app behaves as if the logs are all empty. – RTPeat Nov 7 '16 at 10:55
  • @Leland, So what's the equivalent of syslog -k Sender kernel -k Message CSeq 'n Cause: -'? – Pacerier Aug 28 '17 at 7:45
  • So you are asking for messages from the kernel containing the case folded substring ’n Cause: -‘? I think contains will case fold for you so try log show —info —debug —predicate ‘process contains “kernel” and eventMessage contains “n Cause: -“‘ – Leland Wallace Sep 4 '17 at 7:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .