Skip to content

Tlogs monitor - #1

Merged
pavan-postgres merged 2 commits into
mainfrom
tlogs-monitor
Oct 23, 2026
Merged

pavan-postgres merged 2 commits into
mainfrom
tlogs-monitor

Conversation

@pavan-postgres

Copy link
Copy Markdown
Owner

What

tlogs/ — a single bash script on top of tmux that watches a whole folder of log files in one terminal:

  • one tmux pane per log, tiled and labelled
  • line colours from your own keywords (red / amber / yellow / green / blue / dim, regex)
  • a state per log from its last lines: RUNNING / DONE / WARN / FAILED
  • -r only running · -e only issues · -w watch: adds new logs, closes clean finishes, keeps failures
  • mouse support scoped to tlogs sessions (click, scroll, right-click → Zoom)
  • presets for PostgreSQL server logs (stderr/csv/json), pg_upgrade, RDS/Aurora downloads, batch jobs
  • config files are parsed as data, never executed

Why

Watching a batch of long-running jobs (e.g. PostgreSQL major-version upgrades) meant one terminal per log, and failures got buried in scrollback. tlogs puts every running job on one screen and keeps only what needs attention.

Testing

  • 38 tests: colours, states, config safety, tmux panes, mouse scope, watch mode
  • CI (.github/workflows/tlogs-test.yml): Ubuntu + macOS, including macOS system bash 3.2 ✅
  • Manually on macOS (bash 3.2.57, tmux 3.8): live demo with WARN / FAILED / DONE panes and auto-added logs

Files

  • tlogs/ — script, installer, README with per-OS setup, examples, tests, MIT license
  • .github/workflows/tlogs-test.yml — runs only when tlogs/** changes

One bash script on top of tmux: one pane per log, keyword-based line
colours, RUNNING/DONE/WARN/FAILED state per log, watch mode, mouse
support scoped to tlogs sessions. Presets for PostgreSQL, pg_upgrade,
RDS/Aurora downloads and batch jobs. 38 tests; CI on Ubuntu and macOS
(system bash 3.2).
@pavan-postgres
pavan-postgres merged commit 43f98aa into main Oct 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant