Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ” Go Log Processor

A fast and efficient log parser written in Go that scans multiple log files simultaneously, extracts lines that start with ERROR, and writes them to a specified output file. Designed with performance and concurrency in mind.


๐Ÿง  What it Does

  • ๐Ÿ—‚๏ธ Parses multiple log files at once.
  • ๐Ÿšจ Filters lines that start with ERROR.
  • ๐Ÿ“„ Writes the results to a specified output file.
  • ๐Ÿงต Uses concurrent goroutines for parallel processing.
  • ๐Ÿง  Employs RWMutex to ensure thread-safe access to shared channels.
  • ๐Ÿง  Reads and writes using buffers with a max size of 1MB to keep memory usage under control โ€“ even for large log files.

๐Ÿ How to Use

  1. Build the binary:

    go build -o logprocessor main.go

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages