CloudWatch Logs Viewer
Query AWS CloudWatch Logs Insights without leaving VS Code.
Why Use It?
Fast, lightweight panel for exploring CloudWatch Logs: pick log groups, set a time range, run an Insights query, search & highlight results, and re‑use saved queries.
Key Features (Concise)
- Multi log group querying (relative presets & absolute UTC range)
- Quick favorites: star frequent log groups per region
- Inline syntax highlighting (no extra dependencies)
- Saved queries (AWS Query Definitions with local fallback)
- In‑result search & hide non‑matching rows
- Resizable columns, sticky headers, abort on new run
Requirements & Permissions
Provide AWS credentials (shared config/env/SSO/role). Minimum IAM:
logs:StartQuery
, logs:GetQueryResults
, logs:DescribeLogGroups
Optional for saved queries: logs:DescribeQueryDefinitions
, logs:PutQueryDefinition
, logs:DeleteQueryDefinition
.
Command
- CloudWatch Logs: Open Viewer (
cloudwatchLogsViewer.open
)
Settings
cloudwatchLogsViewer.defaultRegion (string, default us-east-1)
cloudwatchLogsViewer.queryPollIntervalMs (number, default 1000)
cloudwatchLogsViewer.queryTimeoutMs (number, default 60000)
Quick Start
- Open the command palette and run: CloudWatch Logs: Open Viewer.
- Enter/select region; refresh log groups; star favorites if desired.
- Select one or more log groups.
- Pick a relative time preset or switch to Absolute and set start/end.
- Write your Logs Insights query (sample provided) and Run.
- Search within results or save the query for later.
Notes
- Full result set returned (pagination UI not yet implemented).
- Absolute times interpreted as UTC.
- Falls back to local saved queries if AWS definition APIs not permitted.
Changelog
0.2.0 – Removed deprecated Run Last Query & Save Current Query commands; use the panel buttons instead. Fixed bugs URL metadata.
0.1.0 – Initial public alpha.
License
MIT