Reads stdin and posts each line to the provided URL (preferrably CouchDB but who am I to judge)
Want to see pretty graphs? Log in now!
npm install linepost
|2||downloads in the last week|
|3||downloads in the last month|
|Last Published By|
|Version||1.0.0 last updated 4 months ago|
|Keywords||unix, stdin, couchdb, upload|
Reads from stdin and posts each input line to a given URL as text/plain. Best used with a CouchDB update handler, natch.
npm install -g linepost cat somelog.file | linepost http://localhost:5984/logs/_design/collector/_update/message
…should do the trick. (You can include HTTP basic auth in the URL.)