Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikolaysav/tailer
Remote log streaming program
https://github.com/nikolaysav/tailer
go golang log logs ssh tail
Last synced: 4 days ago
JSON representation
Remote log streaming program
- Host: GitHub
- URL: https://github.com/nikolaysav/tailer
- Owner: NikolaySav
- Created: 2019-08-01T13:26:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-10-11T12:54:17.000Z (about 5 years ago)
- Last Synced: 2024-03-01T14:37:40.269Z (9 months ago)
- Topics: go, golang, log, logs, ssh, tail
- Language: Go
- Homepage:
- Size: 2.56 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Golang utility program for connecting via ssh and streaming log file.
Only password authentication can be used for now.
## Usage example
According to config.example.yamlCreate config.yaml with server and project configurations:
```yaml
servers:
-
name: "develop"
host: "111.222.333.444"
port: "22"
username: "username"
password: "password"
```
Create project config for your target server:
```yaml
projects:
-
name: "projectName"
filePath: "/var/www/projectName/current/storage/logs/laravel.log"
server: "develop"
```Build
```
go build tailer.go
```Read default number of rows
```
./tailer projectName
```Read N number of rows
```
./tailer projectName 100
```
## Bastion host example
As usual add bastion and target server configs to servers in config.yaml:
```yaml
servers:
-
name: "bastionServer"
host: "111.222.333.555"
port: "22"
username: "bastionUsername"
password: "bastionPassword"
-
name: "target"
host: "10.1.1.1"
port: "22"
username: "username"
password: "password"
```
Create project config for your target server:
```yaml
projects:
-
name: "bastionProject"
filePath: "/var/www/bastionProject/current/storage/logs/laravel.log"
server: "target"
bastionServer: "bastionServer"
```