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.
| import List exposing (sum, map, foldl) | |
| pow : Float -> Float -> Float | |
| pow num p = | |
| if p == 0 then | |
| 1 | |
| else if p > 0 then | |
| num * (pow num (p - 1)) | |
| else | |
| 1 / num * (pow num (p + 1)) |
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.
| { | |
| "service": { | |
| "name": "node-exporter", | |
| "port": 9100 | |
| } | |
| } |