Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

fnaith-fork/logan

 
 

Repository files navigation

Logan Log Viewer

Logan Screenshot

Logan is a web based interface real-time log viewer/searcher.

Built upon:

Installation

Install dependencies with:

sudo pip install -r .\requirements.txt

Then run:

sh ./start.sh

Then run:

sh ./stop.sh

Configuration

Look at logagentconfig.yaml:

Specifies the number of lines to display maximum:

grepnumlines: 300

Specifies the number of lines before/after the match to display:

searchbeforecontext: 5
searchaftercontext: 5

Specifies the number of lines for tail/head on files:

tailnumlines: 200
headnumlines: 200

Specifies the valid extensions for files found in 'directories':

extensions:
 - log
 - out

To configure the directories to view/search within:

directories:
 - /var/log
 - /Users/jonathan/temp

TODO

  • fix no results found for expression
  • fix bad GET /grep request
  • replace grin to display utf-8 file
  • only search matched files

About

Python web based interface for log viewing/searching (tail/head/grep)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 64.8%
  • HTML 21.0%
  • CSS 9.4%
  • Shell 4.8%