Post data from shell to an HTTP server, line-by-line
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

linepost

Reads from stdin and posts each input line to a given URL as text/plain. Best used with a CouchDB update handler, natch.

Usage

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.)