alpha
500kb file limit, 24 hour retention
308.42 KB
You run processes in the cloud and you want to monitor
and share
their logs.
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
Install the tailf.io CLI
npm install tailf.io-cli
docker logs 87d3698e5dab --follow | tailf.io
tailf.io > https://tailf.io/uHo5qEc96R0rLWEAgMmT1nXoHkjDzcwS
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
});