Jan Walraven
DevOps



Categories:
  • Arduino (2)
  • CSS (3)
  • Docker (11)
  • ESXi (1)
  • Git (4)
  • Google Cloud (3)
  • Javascript (6)
  • Kubernetes (4)
  • Linux (36)
  • Mac (7)
  • Magento (4)
  • Mysql (14)
  • PHP (9)
  • Zend framework 2 (9)
  • Posted on December 21, 2016

    You can send all container logs to Graylog by changing the docker engine logging driver

    
    $ sudo vim /usr/lib/systemd/system/docker.service
    ExecStart=/usr/bin/docker daemon -H fd:// 
          --log-driver=gelf 
          --log-opt gelf-address=udp://10.10.10.1:12202 
    

    Restart Docker

    
    $ sudo systemctl daemon-reload
    $ sudo systemctl restart docker