https://github.com/yeraydiazdiaz/tailsocket
A WebSocket application to tail files.
https://github.com/yeraydiazdiaz/tailsocket
asyncio python3 reactjs tail-files websocket-application
Last synced: 4 days ago
JSON representation
A WebSocket application to tail files.
- Host: GitHub
- URL: https://github.com/yeraydiazdiaz/tailsocket
- Owner: yeraydiazdiaz
- Created: 2016-09-19T09:48:34.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T23:12:23.000Z (over 5 years ago)
- Last Synced: 2024-12-24T22:32:33.544Z (about 1 year ago)
- Topics: asyncio, python3, reactjs, tail-files, websocket-application
- Language: Python
- Size: 234 KB
- Stars: 31
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tailsocket
A WebSocket application to tail files.
[](https://travis-ci.org/yeraydiazdiaz/tailsocket)

You've set up your machine and you're tweaking config files to get it just right, this last bit should do it... oh, it doesn't? Weird, where's that log again? Hmm, I know it's in the history somewhere, or did I have it on screen/tmux? Which one? :/
Say no more! `pip install tailsocket`, run `tailsocket-server`, write the path to the log file *once* and let the logs come to you!
Ok, maybe I'm being a bit dramatic, but I've found this frustrating sometimes and seemed like a good use for WebSockets so I put this little project together using Tornado, asyncio and React.
Keep in mind Tailsocket can only read from files the owner of the process can read from.
Try it out at http://tailsocket.herokuapp.com/
## Issues
- Changing a tailed log file does not show confirmation, simply new log entries.
- Application messages and errors show in the same context as log entries.
## Enhancements
- Globbing
- Multiple log screens
## Changelog
- *v0.1.1* - Use the more performant [pyinotify](https://github.com/seb-m/pyinotify) in Linux platforms instead of a raw `select` event loop.
- *v0.1* - Initial version.