https://github.com/yupbank/remotetail
tail multiple remote log files asynchronously
https://github.com/yupbank/remotetail
Last synced: 3 months ago
JSON representation
tail multiple remote log files asynchronously
- Host: GitHub
- URL: https://github.com/yupbank/remotetail
- Owner: yupbank
- License: mit
- Created: 2015-11-12T13:29:29.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-08-26T01:57:30.000Z (almost 9 years ago)
- Last Synced: 2025-02-08T15:35:08.156Z (4 months ago)
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RemoteTail
remote tail log utils
---
example usage are in the example.py
```
from RemoteTail import RemoteTailer
def singal_machine():
remote_tailer = RemoteTailer(host='localhost', username='pengyu', file_name='/Users/pengyu/projects/RemoteTail/README.md')
for line in remote_tailer.tail():
print linedef multi_machine():
remote_tailer_one = RemoteTailer(host='app_server_1', username='pengyu', file_name='/var/log/nginx/access.log')
remote_tailer_two = RemoteTailer(host='app_server_2', username='pengyu', file_name='/var/log/nginx/access.log')
for line in RemoteTailer.multi_tail([remote_tailer_one, remote_tailer_two]):
print line```
----
logs are being pulled back asynchronously