Skip to content

A smart way to monitor your access.log. With ajax, password and fseek() to just get the new lines of the file.

License

Notifications You must be signed in to change notification settings

tabarra/PHPTailMonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPTailMonitor

A very humble, lightweight PHP GUI way to monitor your access.log. With ajax and fseek() to just get the new lines of the file.

Features:

  • PHP fseek+append. Will not re-print the entire file every time the ajax refresh the content
  • File Deleted/Truncated detection
  • AutoScroll
  • Control buttons (AutoScroll, Start/Stop, clear)
  • Password protection (no DB)
  • Simple keyword-based, json configured, line highlight
  • Simple keyword-based, json configured, log filter
  • Ignore self-caused log

Install and Use:

Simply copy the files to your webserver and then edit the config.php to your password and path to your access.log.

TODOs:

  • Statistics
  • Support for 2GB+ files
  • Support multiple files
  • Light/Dark Theme
  • Smart filters for common requests (like images and etc.)
  • Possibly email report for keywords found?
  • Possibly parsing for the log?

Known Issues:

For log files bigger than 2GB will cause problems with filesize(), fseek(), ftell(), and possibly other php functions.

Author

VexGuard - André Tabarra

Inspired In & Thanks To:

deizel / tail.php - Chris Burke
ThomasDepole/Easy-PHP-Tail- - Thomas Depole
php-tail - Toshio Takiguchi

License

MIT License

The MIT License (MIT) Copyright (c) 2015 André Tabarra

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A smart way to monitor your access.log. With ajax, password and fseek() to just get the new lines of the file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published