Download Caxton for Free · 7-day free trial of Caxton Pro, no credit card required · 8 MB · macOS 13.0+
The short answer
CMTrace does not run on a Mac: it is a Windows program that comes with Microsoft Configuration Manager, and Microsoft documents it for Windows only. The free tools on a Mac do its job: Console for browsing, tail -f and less +F in Terminal for a log that is still being written, and grep 'type="3"' for the error lines of a log in CMTrace's format. Caxton, a native Mac editor for text and data files, opens these logs at any size and reads the time and the type of each CMTrace line without any setup: press ⇧⌘L for Filter Lines and choose Error and above in the Severity popup to see the type 3 lines, or press ⌥⌘L for Go to Time to jump to a moment.
Can you run CMTrace on a Mac?
No. Microsoft's documentation describes CMTrace as "one of the Configuration Manager tools," and every place it lists for the program is a Windows one: CMTrace.exe is installed with the site server, the management point, the client and the boot images for operating system deployment. The page that introduces those tools is direct about where they run, which is "with all Windows operating systems that are listed as supported clients." Neither page names a Mac version.
OneTrace, the newer log viewer that Microsoft ships with Support Center, is a Windows program too. Its page gives a Windows install path and notes that "Support Center Log File Viewer and OneTrace use Windows Presentation Foundation (WPF)."
What people miss on a Mac is what CMTrace does with a log once it is open. It "displays lines with errors by using a red background and yellow text color" and "lines with warnings by using a yellow background," it filters and highlights, and it keeps loading new lines as the file grows. If a Windows machine is within reach, CMTrace there is still the best reader for its own format, because it shows the time, the component and the thread of every entry as columns. The rest of this guide is for the log that is on your Mac.
What does a CMTrace log look like in a text editor?
A log in the format CMTrace was built for is still a text file. Microsoft's page names two kinds of file the tool reads, "Log files in Configuration Manager or Client Component Manager (CCM) format" and "Plain ASCII or Unicode text files, such as Windows Installer logs." Opened as text, an entry of the first kind is one long line, like this example:
<![LOG[Policy evaluation failed]LOG]!><time="14:03:27.123-060" date="11-11-2026" component="PolicyAgent" context="" type="3" thread="4120" file="policyagent.cpp:812">
The message sits between <![LOG[ and ]LOG]!>, and the fields that CMTrace shows as columns follow it. Microsoft publishes the layout itself: a support article on WSUS maintenance includes a PowerShell function under the comment "Write-Log in CMTrace Format" that builds each line in this order, with the time, the date, the component, a context, the type, the thread and the file. Its own usage examples pass 1 with "Starting installation," 2 with "Something went wrong" and 3 with "BIG Error Message." That number is the type field, and it is what CMTrace colors by. In these logs, the CMTrace page explains, "log entries include an explicit type value that indicates the entry as an error."
Two things follow for anyone reading the file without CMTrace. An error is a line that contains type="3" and a warning is a line that contains type="2", whatever words the message uses. And the time is not at the start of the line, where most log tools look for it. It comes after the message, as a time field followed by a date field.
On a Mac you meet these files as copies. They are the logs of the Configuration Manager client on Windows, and Microsoft points the same tool at Intune's Windows agent: its documentation gives the folder on the device, C:\ProgramData\Microsoft\IntuneManagementExtension\Logs, with the instruction "Use CMTrace.exe to view these log files."
Where are the Intune logs on a Mac?
The Mac side of Intune writes its own logs, and the ones Microsoft describes are not in CMTrace's format.
The Intune management agent has two documented folders. Microsoft's page on shell scripts for macOS names them, along with the files: the agent collects logs "from these folders: /Library/Logs/Microsoft/Intune and ~/Library/Logs/Microsoft/Intune. The agent log file names are IntuneMDMDaemon date--time.log and IntuneMDMAgent date--time.log."
A support tip from Microsoft's Intune team describes what is inside them. "The transaction logs for the Microsoft Intune Agent start with IntuneMDMDaemon and are found at /Library/Logs/Microsoft/Intune," it begins, and then: "The IntuneMDMDaemon logs are broken up into 6 columns of data delimited by a pipe character (|)." The six are the date and time, the process, the log level, the process ID, the task that wrote the line, and the task's information. One of Microsoft's sample lines reads:
2025-06-13 10:03:59:893 | IntuneMDM-Daemon | W | 10432 | TreatmentProvider | Missing device ID
So this log is plain text, with the date and time first and the level as one letter in the third column. Nothing in it needs CMTrace.
Company Portal has a documented menu command and no documented folder. Microsoft's page on reporting a problem in the Mac app has you open the Help menu and choose Save Diagnostic Report, and then "Choose a location to save the file." The app's diagnostic logs are in that file, wherever you put it.
Where is jamf.log on a Mac?
Jamf's documentation for Jamf Pro lists it under Jamf Client Logging, among the components installed on a managed computer. The file is /var/log/jamf.log, with the description "Contains log messages written by the jamf binary." The same section sends you to the Mac's unified log for the rest, "Other logging can be accessed via macOS logging commands," and gives the command for the Jamf daemon's debug messages:
log stream --level debug --predicate 'subsystem BEGINSWITH "com.jamf.management.daemon"' --style compact
Jamf's page does not print a sample line of jamf.log, which matters for one step further down.
How do I read these logs with the tools already on a Mac?
Everything in this section is free and already installed.
Console lists log files under Log Reports in its sidebar. Apple's Console User Guide describes that category as "System and user reports with information about events that occur when the system or specific apps are processing. Log report names have an extension such as .log, ._log, or .its." To read one, "Select a report category under Reports in the sidebar (for example, Log Reports), then select a report at the top of the window," and to search inside it, "Double-click the report, then enter the text in the search field." When the log you want is in that list, Console is the quickest way to look at it. Console also shows the unified log as it happens, which is where Jamf's documentation points: select your Mac under Devices and, in Apple's words, "Click Start in the toolbar."
tail -f is the nearest thing to CMTrace's live view for a log that is being written while you watch. Apple's manual page describes the option: it "causes tail to not stop when end of file is reached, but rather to wait for additional data to be appended to the input." Press Control-C to stop.
tail -f /var/log/jamf.log
tail -f /Library/Logs/Microsoft/Intune/IntuneMDMDaemon*.log
The second command follows every file the pattern matches, and tail prints the name of each file above its lines. To watch only the warnings, send the output through grep:
tail -f /Library/Logs/Microsoft/Intune/IntuneMDMDaemon*.log | grep --line-buffered '| W |'
less +F pages through a file and keeps reading at its end. The manual page for less describes the F command as "Scroll forward, and keep trying to read when the end of file is reached," and adds that "It is a way to monitor the tail of a file which is growing while it is being viewed." Control-C returns to normal paging, where a slash followed by a word searches for it and q quits.
less +F /var/log/jamf.log
log show reads the past of the unified log, where log stream shows the present. Apple's manual page describes show as the command that "Shows contents of the system log datastore," with --last limiting it to a recent period, "For example, '--last 2m' or '--last 3h'," and it warns that "The output contains only default level messages unless --info and/or --debug are specified." With the subsystem from Jamf's documentation, the last hour reads:
log show --last 1h --info --debug --predicate 'subsystem BEGINSWITH "com.jamf.management.daemon"'
grep does the thing people miss most in a CMTrace log, which is finding the errors by their type and not by a word in the message:
grep -c 'type="3"' PolicyAgent.log
grep -n 'type="3"' PolicyAgent.log
grep -nE 'type="[23]"' PolicyAgent.log > errors-and-warnings.txt
The first command counts the error lines, the second prints them with their line numbers, and the third writes the errors and the warnings to a new file. If grep finds nothing in a file that you know has errors, check the encoding. The file command names it, and a UTF-16 file has to be converted on its way to grep:
file PolicyAgent.log
iconv -f UTF-16 -t UTF-8 PolicyAgent.log | grep -n 'type="3"'
Is Caxton a CMTrace alternative for the Mac?
For reading these logs, yes, with one difference from CMTrace to know first. Caxton, a native Mac editor for text and data files, opens any of these logs as text at any size and treats a file whose name ends in .log as a log. Error and warning lines get a tinted band, the minimap shows the same bands, and the filter bar gains a Severity popup. In a CMTrace log it reads each entry's time and its type without any setup. The difference is that it does not turn a CMTrace entry into columns, so each entry stays one line of text with its fields at the end. The steps below take each log in turn and name the limits where they apply. Every step is Caxton Free.
1. Open the log
Drag the file onto Caxton, or choose File ▸ Open… and pick it. A file of 300 MB or more goes through the Open Large File dialog first, where Whole-File Virtual opens all of it and indexes it while you read. Opening, reading, searching and filtering are Caxton Free at any size.
2. Know what Caxton reads in a CMTrace line
The time is read from the time and date fields that follow the message. Caxton looks for every other timestamp format near the start of a line, and CMTrace is the one format it reads from the end. To confirm it, choose View ▸ Log ▸ Timestamp Format… and read the top of the form, where the detected format is shown as CMTrace with a sample of the two fields. The signed number that ends a time is its bias, the minutes to add to that time to reach UTC, so the -060 of the example line is a clock one hour ahead of UTC. A time without a bias is read in the zone that the Zone popup of the same form names, which is this Mac's zone when no line of the log carries a bias.
The type is read as the line's level. Type 3 is Error, type 2 is Warn and type 1 is Info, and a line with any other value gets no level. Error and Warn lines get the tinted band and the minimap band, and Info lines get neither. A word in the message does not decide the level of a CMTrace line. The example line above is an error because of its type="3" and not because its message ends with the word failed, and an informational line that begins "No error was returned" stays Info.
Three limits remain. A line longer than 4,096 bytes gets no time and no level, because both stand at the end of the line, past the part Caxton reads. When a message runs over several lines, the time and the type are on the last of those lines. The first line of such a message gets no level, a line in its middle is still judged by Caxton's built-in level words such as ERROR and WARN, and a filter by level or by time keeps a line that has neither with the entry above it. And your own patterns in View ▸ Log ▸ Severity Patterns… are tried before the type field, so a pattern that matches a word in a message decides that line's level.
3. Show the error lines with the Severity popup
Press ⇧⌘L for Filter Lines and choose Error and above in the Severity popup. The view narrows to the type 3 lines, and the bar shows how many of the file's lines remain. Warn and above adds the type 2 lines. The file itself is not changed.
A text filter does the same job by the field itself, and it also finds a line that is too long to get a level. Type type="3" in the filter bar and press Return. For errors and warnings together, click the .* button so that the entry is read as a regular expression, and type:
type="[23]"
Caxton's regular expressions are ICU's, matched one line at a time, and this one was tested against the example line. A text filter works line by line, so when a message itself contains line breaks, only the line that carries the fields is shown.
Filter Lines and its Severity popup are Caxton Free. Writing the filtered lines to a new file with Edit ▸ Find ▸ Save Filtered Lines… is Caxton Pro, which every download includes as a 7-day free trial of Caxton Pro with no credit card required, and the grep command above does that job for free.
4. Go to a time in a CMTrace log
Press ⌥⌘L for Go to Time and type a clock time such as 14:03, a date and time such as 2026-11-11 14:03, or an offset from the caret's line such as +5m. Caxton lands on the first line at or after that time and names the line and the time in a banner. Type the time as the log writes it, because a typed time is read in the log's own zone when its lines carry a bias. A clock time on its own means the day of the caret's line.
To keep a span of time on screen, filter by it. Press ⇧⌘L, click + in the filter bar to open the Filter Lines panel, choose Time window in the row's popup, fill in From and To with times such as 14:03 and 14:05, and click Apply. The time is also ordinary text on the line, so a text filter for time="14:03: shows every entry written in that minute, including a line that is too long to get a time. Go to Time and Filter Lines are Caxton Free.
5. Use Go to Time in the Mac's Intune log
A line of the Intune agent's log, in the form Microsoft shows, begins with a date and a time in a format Caxton reads, so Go to Time works. Press ⌥⌘L and type a clock time such as 10:03, a date and time, or an offset from the caret's line such as +5m. Caxton lands on the first line at or after that time and names the line and the time in a banner. The time is read to the second: the milliseconds, which this log writes after a third colon, are not read. Go to Time is Caxton Free.
The level is the single letter in the third column, W in Microsoft's sample, and a single letter is not one of Caxton's built-in level words, so these lines are not tinted on their own. A severity pattern gives them a level. Choose View ▸ Log ▸ Severity Patterns…, click +, type | W |, pick the level Warn, and leave Regular expression off. Add the letter your own log shows for errors in the same way, with the level Error. Each change is saved as you make it, and logs that are already open recolor at once. The list is one list for every log you open, and a pattern is looked for in the first 4,096 bytes of a line. Severity Patterns is Caxton Free. To hide the routine lines without any pattern, filter for | I |, the letter in Microsoft's informational samples, and click ≠, which keeps the lines that do not contain it.
6. Check what Caxton detected in jamf.log
jamf.log is treated as a log because of its name, and whether Go to Time works depends on how its lines begin. Choose View ▸ Log ▸ Timestamp Format… and read the top of the form, which shows the format Caxton detected or shows that none was recognized in the first lines. A line that begins with a month, a day and a time in syslog's form is read, and so is the same line behind a three-letter weekday, as in Sun Nov 08 10:15:42. A weekday line with the year straight after the time is read as well, in the form of an Apache error log. A line in the form the date command prints, with a zone word and a year after the time as in Fri Nov 27 10:15:42 UTC 2020, is not read. When no format is detected, Go to Time is not available, and the route to a moment is a text filter for the minute, such as 14:03:. Search, Filter Lines and bookmarks work whatever the line looks like.
7. Bookmark what you find and keep notes
⇧⌘B puts a bookmark on the caret's line, and Edit ▸ Bookmarks ▸ Add Note to Bookmark… attaches a note to it. Edit ▸ Bookmarks ▸ Bookmark Lines Matching… takes a pattern, so type="3" bookmarks every error line in one step, up to 10,000 lines. The Bookmarks panel, opened with ⌥⌘M, lists every bookmark with its text and its note. In a log whose time and level Caxton reads, a CMTrace log included, each row also carries the line's time and its level. Copy as Incident Notes puts the list on the clipboard as a plain-text table for a ticket. Bookmarks and notes are Caxton Free.
8. Watch a log that is still being written
Follow is Caxton's version of tail -f, and it belongs to Tail mode, which the Open Large File dialog offers for a file of 300 MB or more. A smaller log is opened whole. Caxton watches it and reloads it when it changes on disk, which is not the same as following it line by line. For a small log that you want to watch as it is written, tail -f in Terminal is the better tool, and Caxton is for reading the file afterward.
Which tool fits which log?
| Job | Free tool | In Caxton |
|---|---|---|
| Find the errors in a CMTrace log | grep 'type="3"' | Error and above in the Severity popup, or Filter Lines with type="3" |
| See errors and warnings together | grep -E 'type="[23]"' | Warn and above in the Severity popup, or Filter Lines with .* on and type="[23]" |
| Read one minute of a CMTrace log | grep 'time="14:03:' | Go to Time, or a Time window row in the Filter Lines panel |
| Jump to a time in the Intune agent's log | less, then a slash and the time | Go to Time |
| Watch a log as it is written | tail -f or less +F | Follow, for a file of 300 MB or more opened as Tail |
| Read Jamf's messages in the unified log | Console, log stream or log show | Caxton reads files and does not read the unified log |
| Keep notes on what you found | A text file beside the log | Bookmarks with notes, and Copy as Incident Notes |
| See the time, component and thread as columns | CMTrace, on a Windows machine | Caxton shows each entry as one line of text |
For the Mac's own logs in general, how to view log files on a Mac covers Console and the log command in more depth. Choosing a log viewer for the Mac weighs the dedicated viewers against each other, and filter large log files continues with filters of several conditions.
Open the copied log, press ⇧⌘L, type type="3", and read only the errors.
Download Caxton for Free7-day free trial of Caxton Pro, every feature, no credit card required. After it, Caxton Free keeps opening, searching and filtering at any size, and you can edit and save files up to 10 MB as text.
Frequently asked questions
Does CMTrace run on a Mac?
CMTrace does not run on a Mac: it is a Windows program that comes with Microsoft Configuration Manager, and Microsoft documents it for Windows only. The free tools on a Mac do its job: Console for browsing, tail -f and less +F in Terminal for a log that is still being written, and grep 'type="3"' for the error lines of a log in CMTrace's format. Caxton, a native Mac editor for text and data files, opens these logs at any size and reads the time and the type of each CMTrace line without any setup: press ⇧⌘L for Filter Lines and choose Error and above in the Severity popup to see the type 3 lines, or press ⌥⌘L for Go to Time to jump to a moment.
Where are Intune logs on a Mac?
Microsoft's documentation names two folders for the Intune management agent's logs on a Mac: /Library/Logs/Microsoft/Intune and ~/Library/Logs/Microsoft/Intune. The files are named IntuneMDMDaemon and IntuneMDMAgent, each followed by a date and a time and ending in .log. For the Company Portal app Microsoft documents no folder: the app's Help menu has Save Diagnostic Report, which saves its diagnostic logs to a place you choose.
How do I watch a log update live?
In Terminal, tail -f followed by the file's path keeps printing new lines as they are written, and less +F does the same inside a pager, with Control-C to stop. For messages that go to the Mac's unified log, log stream prints them as they occur. In Caxton, Follow pins the view to the end of a growing file in Tail mode, which the Open Large File dialog offers for a file of 300 MB or more, and a smaller log opened whole is reloaded when it changes on disk.
Can I open a log copied from a Windows machine?
Yes. It is a text file, so less, grep and any editor on a Mac open it, and its Windows line endings, CRLF, do not stop less or grep from reading it. The one thing to check is the encoding: grep finds nothing in a UTF-16 file until iconv has converted it to UTF-8. Caxton detects UTF-16 by its byte order mark, or without one by its pattern of zero bytes, converts it for reading, and shows the encoding and the line ending in the status bar. If the text still looks wrong, File ▸ Reopen with Encoding reads the file in an encoding you choose.
Sources
- Microsoft Learn: CMTrace, in the Configuration Manager documentation
- Microsoft Learn: Configuration Manager tools
- Microsoft Learn: Support Center OneTrace
- Microsoft Learn: Manual and automatic WSUS database maintenance, for its Write-Log function in CMTrace format
- Microsoft Learn: Understand Microsoft Intune Management Extension, for the log folder on Windows
- Microsoft Learn: Use shell scripts on macOS devices in Microsoft Intune, for the agent's log folders and file names
- Microsoft Intune Customer Success blog: Support tip, Troubleshooting Microsoft Intune management agent on macOS
- Microsoft Learn: Report a problem in Company Portal for macOS
- Jamf Pro Documentation: Components Installed on Managed Computers
- Apple Support: View reports in Console on Mac
- Apple Support: View log messages in Console on Mac
- Apple's manual pages on macOS:
man tail,man less,man log,man grep,man iconvandman file, read with the shipped tools in Terminal - Caxton manual: Log Mode, Go to Time, the timestamp formats and Severity Patterns
- Caxton manual: Filtering, the filter bar and its conditions
- Caxton manual: Navigation and Bookmarks
- Caxton manual: Encodings, detection and Reopen with Encoding
- Caxton manual: Opening large files, the Open Large File dialog and Tail mode