Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/NickCarneiro/remtail
tail log files from multiple remote hosts
https://github.com/NickCarneiro/remtail
Last synced: 4 months ago
JSON representation
tail log files from multiple remote hosts
- Host: GitHub
- URL: https://github.com/NickCarneiro/remtail
- Owner: NickCarneiro
- License: mit
- Created: 2015-02-18T06:13:16.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-29T19:35:21.000Z (over 9 years ago)
- Last Synced: 2024-08-01T13:35:20.706Z (7 months ago)
- Language: JavaScript
- Size: 467 KB
- Stars: 137
- Watchers: 3
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# remtail
tail out log files from multiple remote hosts

# [![NPM version][npm-image]][npm-url][](https://travis-ci.org/NickCarneiro/remtail)
# install!
```
npm install -g remtail
```# basic usage
Connect to as many hosts as you want.
```
remtail trillworks.com:/var/log/nginx/access.log okpedro.com:/var/log/apache2/other_vhosts_access.log
```Specify multiple files on the same host by repeating the hostname.
```
remtail trillworks.com:/var/log/nginx/access.log trillworks.com:/var/log/nginx/error.log
```grep-like functionality with highlighting.
Only print lines containing "Comment", with "Comment" shown in red.
```
remtail --grep "Comment" trillworks.com:/var/log/apache2/other_vhosts_access.log
```
For case insensitive search, use --grepi.
```
remtail --grepi "Comment" trillworks.com:/var/log/apache2/other_vhosts_access.log
```You have full support for JavaScript regular expressions, so you can search for multiple strings like this:
```
remtail --grepi "GET|POST" trillworks.com:/var/log/apache2/other_vhosts_access.log
```# advanced usage
To avoid typing in passwords for every host,
[copy your public key](http://askubuntu.com/questions/4830/easiest-way-to-copy-ssh-keys-to-another-machine)
to the remote servers. Then add entries in your ssh config. (~/.ssh/config). Here is the format:Host trillworks
HostName trillworks.com
User burt
IdentityFile ~/.ssh/id_rsaSpecify an alternate ssh config with -s.
If you want to live dangerously, you can throw your passwords in a json credentials file (~/.remtail.json).
*WARNING: This is deprecated and will be removed in version 1.0.*
[
{
"hostname": "trillworks.com",
"port": 22,
"user": "buzz",
"password": "hunter2"
},
{
"hostname": "globcong.com",
"user": "woody",
"privateKey": "/Users/woody/.ssh/id_rsa"
}
]Specify an alternate credentials file path with -c.
# development
## unit tests
```node test/test.js```
## linter
```npm run-script jshint```
# license
MIT
[npm-url]: https://npmjs.org/package/remtail
[npm-image]: https://badge.fury.io/js/remtail.svg