> For the complete documentation index, see [llms.txt](https://docs.k9.io/key9-identity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.k9.io/key9-identity/k9-tail/readme.md).

# Overview

**k9-tail** is a lightweight daemon that monitors authentication log files and streams SSH events to the [Key9 Identity](https://k9.io) service in real time.

## What it does

k9-tail follows a system authentication log (typically `/var/log/auth.log`) and forwards SSH-related entries to Key9. This enables Key9 to:

* Identify which SSH public keys are being used for authentication
* Record successful and failed login attempts
* Establish geolocation data from client IP addresses
* Provide a full audit trail of SSH access across your fleet

Only `sshd` log entries are transmitted. Kernel audit log lines (containing `audit[` or `audit:`) are explicitly excluded.

## How it tracks progress

k9-tail uses a **waldo file** to record its current position in the authentication log. On restart, it resumes from where it left off, ensuring no events are duplicated or missed. If the log file is truncated (e.g., after log rotation), the waldo position is automatically reset to the beginning.

## Is k9-tail required?

k9-tail is optional but strongly recommended. Key9 SSH will function without it, but you will lose visibility into key usage, login history, and geolocation data.

## Quick links

* [Installation](/key9-identity/k9-tail/installation.md)
* [Configuration](/key9-identity/k9-tail/configuration.md)
* [Usage](/key9-identity/k9-tail/usage.md)
* [Building from Source](/key9-identity/k9-tail/building.md)
* [Running as a Service](/key9-identity/k9-tail/systemd.md)
* [Key9 Slack Community](https://key9identity.slack.com/)


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.k9.io/key9-identity/k9-tail/readme.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
