tailf.io

tail -f for the cloud

WHY

You run processes in the cloud and you want to monitor and share their logs.

TERMINAL PIPE

Install the tailf.io CLI

npm install tailf.io-cli

Run a command and pipe it to tailf.io

ls -hal / | tailf.io

 tailf.io >  https://tailf.io/uHo5qEc96R0rLWEAgMmT1nXoHkjDzcwS
STREAM DOCKER

Install the tailf.io CLI

npm install tailf.io-cli
docker logs 87d3698e5dab --follow | tailf.io

 tailf.io >  https://tailf.io/uHo5qEc96R0rLWEAgMmT1nXoHkjDzcwS
STREAM DOCKER PROGRAMMATICALLY

Install the tailf.io SDK

npm install tailf.io-sdk
let { Producer } = require('tailf.io-sdk');

let tailf               = new Producer()
  , { stdout, stderr }  = tailf.streams();
  ;

// assumes container is a dockerode (https://github.com/apocas/dockerode) container instance
container
  .attach({ stream : true, stdout : true, stderr : true}, (stream) => {
    container.modem.demuxStream(stream, stdout, stderr);
  });

tailf.uri((err, uri) => {
  console.log(uri);
  // will console.log https://tailf.io/uHo5qEc96R0rLWEAgMmT1nXoHkjDzcwS
});