Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/glynnbird/logshare-client
Log-sharing command-line client
https://github.com/glynnbird/logshare-client
Last synced: 5 days ago
JSON representation
Log-sharing command-line client
- Host: GitHub
- URL: https://github.com/glynnbird/logshare-client
- Owner: glynnbird
- Created: 2016-02-12T08:53:26.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-25T16:42:02.000Z (over 8 years ago)
- Last Synced: 2024-10-12T22:13:04.552Z (about 1 month ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# logshare-client
Simple log-sharing utility built with Node.js and Cloudant.
## Installation
npm install -g logshare
## Running>tail -f /var/log/system.log | logshare
Share URL: https://logshare.mybluemix.net/share/kkdgapgdxPut the URL in your browser and share it with the people you want to share your data with.
![Demo](https://github.com/glynnbird/logshare/raw/master/public/img/demo.gif)
Alternatively, they can run logshare too like this:
> logshare https://logshare.mybluemix.net/share/kkdgapgdx
or
> logshare kkdgapgdx
to consume the stream of logs at their terminal.
## Stopping
Ctrl-CWhen `logshare` is killed, it deletes the data you streamed to it.
## Options
When sharing a stream, you can also direct the stream to your terminal by adding the `-f` command-line switch e.g.
>tail -f /var/log/system.log | logshare -f
Share URL: https://logshare.mybluemix.net/share/kkdgapgdx
2016-01-01 Log Messages appear here
2016-01-01 and hereIf you wish to use a *logshare* server other than "https://logshare.mybluemix.net", then you can specify it with an environment variable "LOGSHARE":
export LOGSHARE=http://localhost:6020
## Live Demo
Visit [https://logshare.mybluemix.net](https://logshare.mybluemix.net) for a live demo.
## What is this code?
This is the command-line client code for `logshare`. The server-side code lives in a [separate repository](https://github.com/glynnbird/logshare-server).