Skip to content

biprajit007/log-streaming-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

log-streaming-tool

A tiny Go utility that tails a file by repeatedly reopening it, seeking to the last read position, and printing any new lines.

Key features

  • Near-real-time line streaming
  • Single binary with no dependencies

Project structure

  • main.go — Polling tail implementation
  • go.mod — Go module definition

Requirements

  • Go 1.22+

Setup

git clone https://github.com/biprajit007/log-streaming-tool.git
cd log-streaming-tool
go build

Usage

Stream a log file

go run . /var/log/system.log

Limitations / next improvements

  • No file rotation detection
  • Polling interval is fixed at one second
  • No filtering, coloring, or seek-to-end option

About

Go tool to stream logs from remote sources in near real time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages