> For the complete documentation index, see [llms.txt](https://v2.dataos.info/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v2.dataos.info/references/resources/nilus/troubleshooting/checking-logs.md).

# Checking logs

How to read Nilus runtime logs: what fields to capture, log-level configuration, common log patterns, and the recommended reading order.

Logs are the fastest way to find the exact failure after metrics tell you which resource needs attention.

## What to capture

| Field                           | Why it matters                                                      |
| ------------------------------- | ------------------------------------------------------------------- |
| Resource name and `resource_id` | Connects logs, metrics, run history, and destination output.        |
| Tenant and owner                | Helps route follow-up and permissions checks.                       |
| Pipeline mode                   | Changes which source, sink, and state checks apply.                 |
| First error line                | Usually closer to the cause than later retries or cleanup messages. |
| Final status line               | Confirms whether the runtime failed before or after metrics push.   |

## Log level

Set Nilus runtime logging with `spec.logLevel` in the resource and the `LOG_LEVEL` environment variable inside the runtime. Use `INFO` for normal operation and raise to `DEBUG` only during focused investigation.

```yaml
spec:
  logLevel: INFO
```

## Useful patterns

Search for these patterns in the resource logs:

| Pattern                         | Meaning                                                                |
| ------------------------------- | ---------------------------------------------------------------------- |
| `Nilus app execution failed`    | The runtime raised an exception during pipeline execution.             |
| `Source not supported.`         | The source URI or pipeline mode did not resolve to a supported source. |
| `Sink not supported.`           | The destination URI did not resolve to a supported destination.        |
| `metrics push failed`           | Runtime metrics could not be pushed to Pushgateway.                    |
| `Final metrics push successful` | The runtime reached final metrics push after pipeline execution.       |
| `Final metrics push failed`     | The run completed or failed, but final metrics push also failed.       |

## Reading order

1. Start at the first error, not the final stack trace frame.
2. Look upward for the source or destination operation that triggered it.
3. Match the message to the source connector page, destination connector page, or common error catalog.
4. Check whether the same resource had a recent successful run.
5. Only change config after the failed stage is clear.

## Related docs

* [Troubleshooting](https://v2.dataos.info/references/resources/nilus/troubleshooting.md)
* [Common errors](https://v2.dataos.info/references/resources/nilus/troubleshooting/common-errors.md)
* [Observability](https://v2.dataos.info/references/resources/nilus/observability.md)
* [Grafana dashboards](https://v2.dataos.info/references/resources/nilus/observability/grafana-dashboard.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://v2.dataos.info/references/resources/nilus/troubleshooting/checking-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.
