> For the complete documentation index, see [llms.txt](https://documentation.2pintsoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.2pintsoftware.com/osd-toolkit/4.0/monitoring-and-reporting/log-files.md).

# Log files

OSD Toolkit writes one log, `OSDToolkit.log`, in CMTrace format so it can be read next to `smsts.log`.

## Where the log is

| Phase                            | Location                                                                                 |
| -------------------------------- | ---------------------------------------------------------------------------------------- |
| Windows PE                       | The task sequence log folder, next to `smsts.log` (typically `X:\Windows\Temp\SMSTSLog`) |
| New OS, during the task sequence | The task sequence log folder at that point                                               |
| New OS, after the task sequence  | `C:\Windows\CCM\Logs\OSDToolkit.log`                                                     |
| Outside a task sequence          | `%TEMP%`                                                                                 |

## Keeping the Windows PE log

The Windows PE log lives on the RAM drive and is lost at the restart. Set `OSDTKLogPath` to a folder that survives: a mapped share, or `C:\` once the disk is formatted.

## Verbose logging

`OSDTKLogLevel=debug` adds the download engine's verbose output. That is megabytes per package; keep it off in Windows PE unless support asks for it.

## What to look for

| Line                                                   | Description                                                             |
| ------------------------------------------------------ | ----------------------------------------------------------------------- |
| Version and arguments                                  | First lines of every run                                                |
| `Licensed to ... until ...` / `Not licensed: ...`      | Result of the license check                                             |
| `Memory at start`                                      | Free memory, and the headroom for transfer buffers                      |
| `Transfer: profile=...`                                | The transfer settings in effect after profile, overrides and memory fit |
| `Download summary`                                     | Totals per package                                                      |
| `Bytes from peers`                                     | Share served by peers                                                   |
| `Effective speed`                                      | Rate over the whole package                                             |
| `PopulateCache` ... `Successfully added data to cache` | The Cache step, one line per file                                       |

## Boot Image Customizer logs

The Boot Image Customizer writes one build log per run, on the computer where it runs. See [Unattended builds](https://documentation.2pintsoftware.com/osd-toolkit/4.0/installation/adding-osd-toolkit-to-the-boot-image/unattended-builds.md#files-and-logs) for the locations.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.2pintsoftware.com/osd-toolkit/4.0/monitoring-and-reporting/log-files.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
