> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/sse-v1/troubleshooting-sse/collecting-diagnostic-logs.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# Collecting Diagnostic Logs

How to collect SSE diagnostic logs for investigation or support.

Collect SSE logs before investigating a **Failed** scan further or contacting support. Record the approximate failure time first so the relevant entries can be located.

### Windows log location

On a default Windows installation, logs are stored in:

```
C:\Program Files\Atempo\SSE\api\logs
```

If `INSTALLDIR` was customized during installation, confirm the actual log location on that deployment.

{% hint style="warning" %}
**TO BE ADDED: Linux diagnostic-log locations and platform-specific collection procedure.**
{% endhint %}

### Collecting the files

1. Record the scan name, storage, scope, status, and approximate failure time.
2. Copy the complete contents of the log directory without changing the original files.
3. Preserve the file names and timestamps.
4. Place the copied files in a ZIP archive for investigation or support.

{% hint style="warning" %}
Logs can contain storage paths, identifiers, hostnames, and error details. Review the archive and follow your organization's data-handling policy before sharing it.
{% endhint %}

### Log format

SSE logs use structured JSON records. Common fields include:

| Field             | Description                                                                                      |
| ----------------- | ------------------------------------------------------------------------------------------------ |
| `timestamp`       | UTC time at which the entry was recorded                                                         |
| `level`           | Severity, such as `error`                                                                        |
| `logger`          | Originating module, such as `app.worker.process_scanner`                                         |
| `event`           | Event name, such as `mp_worker_copy_failed`                                                      |
| `app`             | Emitting application, normally `sse`                                                             |
| Additional fields | Event-specific details such as `worker_id`, `scan_job_id`, `storage_id`, `error`, or `exception` |

See also: [Common Errors](https://documentation.atempo.com/sse-v1/troubleshooting-sse/common-errors.md), [Known Issues and Workarounds](https://documentation.atempo.com/sse-v1/troubleshooting-sse/known-issues-and-workarounds.md), and [Contacting Support](https://documentation.atempo.com/sse-v1/troubleshooting-sse/contacting-support.md).


---

# 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.atempo.com/sse-v1/troubleshooting-sse/collecting-diagnostic-logs.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.
