Jan Walraven
DevOps



Categories:
  • Arduino (2)
  • CSS (3)
  • Docker (10)
  • Git (3)
  • Javascript (6)
  • Linux (31)
  • Mac (6)
  • Magento (4)
  • Mysql (13)
  • 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