From 1f7ac784fbb050d9e00955b89e51695216f0977d Mon Sep 17 00:00:00 2001 From: Kris Lamoureux Date: Tue, 17 Mar 2020 11:36:17 -0400 Subject: [PATCH] Update input config and mount Graylog cert data --- GELFTCPInput.json | 13 ++++++++++--- Vagrantfile | 1 + docker-compose.yml | 2 ++ 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/GELFTCPInput.json b/GELFTCPInput.json index 37b13d1..77132f2 100644 --- a/GELFTCPInput.json +++ b/GELFTCPInput.json @@ -1,13 +1,20 @@ { - "title": "Fluentd", + "title": "td-agent", "type": "org.graylog2.inputs.gelf.tcp.GELFTCPInput", "global": true, "configuration": { "bind_address": "0.0.0.0", "decompress_size_limit": 8388608, - "recv_buffer_size": 1048576, + "max_message_size": 2097152, "number_worker_threads": 4, - "port": 12201 + "port": 12201, + "recv_buffer_size": 1048576, + "tcp_keepalive": false, + "tls_cert_file": "/usr/share/graylog/certs/rootCA.crt", + "tls_client_auth": "required", + "tls_enable": true, + "tls_key_file": "/usr/share/graylog/certs/rootCA.key", + "user_null_delimiter": true }, "node": null } diff --git a/Vagrantfile b/Vagrantfile index 4e70d68..2871cad 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -106,6 +106,7 @@ Vagrant.configure("2") do |config| # Fix permissions chown -R vagrant:vagrant /home/vagrant/ + chown -R 1100:1100 /home/vagrant/certs/graylog # Wait 120 seconds for Graylog to come online cd /vagrant diff --git a/docker-compose.yml b/docker-compose.yml index 709a089..129bb79 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -59,6 +59,8 @@ services: - "traefik.http.services.graylog.loadbalancer.server.port=9000" - "traefik.docker.network=vagrant_traefik-net" - "traefik.enable=true" + volumes: + - /home/vagrant/certs/graylog:/usr/share/graylog/certs networks: - graylog - traefik-net