The CloudTrail logs waited, heavy with detail and patterns you couldn’t see yet. You open Lnav, and now the hunt begins.
Lnav CloudTrail Query Runbooks are the fastest way to move from raw AWS event data to clear, actionable intelligence. CloudTrail records every API call in your AWS account, but without a framework for running precise queries, it’s just a pile of JSON lines. Lnav solves this with interactive log navigation, advanced search, and real-time filtering. Runbooks give you repeatable workflows for turning queries into decisions.
Why Lnav for CloudTrail
- Instant context: Lnav combines multiple logs, parses timestamps, and aligns events so investigations move fast.
- SQL power: Query CloudTrail directly with SQLite syntax inside Lnav. No export step, no external database.
- Replayable workflows: Save queries as runbooks. When the same problem returns, the fix is ready.
Core Queries for CloudTrail in Lnav
- Find all failed
AssumeRoleattempts. - List every access from outside known IP ranges.
- Track S3 object deletions by IAM user.
- Detect new security group openings in real time.
Each query can run in seconds against locally loaded CloudTrail logs. Lnav’s syntax highlighting and timeline view make anomalies stand out without extra tooling. Combine filters and pivots to get precise answers before incidents spread.