There's so many way to send logs to an elk... logspout, filebeat, journalbeat, etc.
But docker has a gelf log driver and logstash a gelf input. So here we are.
Here is a docker-compose to test a full elk with a container sending logs via gelf.
jQuery.fn.extend({ | |
getPath: function() { | |
var pathes = []; | |
this.each(function(index, element) { | |
var path, $node = jQuery(element); | |
while ($node.length) { | |
var realNode = $node.get(0), name = realNode.localName; | |
if (!name) { break; } |
setInterval (() => { | |
if(this.locker.promises.size === 0) { | |
process.exit(0); // code exit 0 not to re-create worker | |
} | |
}, 100); | |
// force kill process | |
setTimeout(() => { | |
process.exit(0); | |
}, 3000); |
There's so many way to send logs to an elk... logspout, filebeat, journalbeat, etc.
But docker has a gelf log driver and logstash a gelf input. So here we are.
Here is a docker-compose to test a full elk with a container sending logs via gelf.