1
0
mirror of https://github.com/krislamo/graylog_demo synced 2024-11-09 21:50:35 +00:00

Install Fluentd's input during initial provision

This commit is contained in:
Kris Lamoureux 2020-02-25 15:44:12 -05:00
parent df4f153695
commit 163f140726
Signed by: kris
GPG Key ID: A30022791E1719A4
2 changed files with 23 additions and 0 deletions

14
GELFUDPInput.json Normal file
View File

@ -0,0 +1,14 @@
{
"title": "Fluentd",
"type": "org.graylog2.inputs.gelf.udp.GELFUDPInput",
"global": true,
"configuration": {
"bind_address": "0.0.0.0",
"decompress_size_limit": 8388608,
"recv_buffer_size": 1048576,
"number_worker_threads": 4,
"port": 12201,
"recv_buffer_size": 262144
},
"node": null
}

9
Vagrantfile vendored
View File

@ -60,6 +60,15 @@ Vagrant.configure("2") do |config|
/usr/local/bin/docker-compose up -d 2> /dev/null /usr/local/bin/docker-compose up -d 2> /dev/null
cd /vagrant/wordpress cd /vagrant/wordpress
/usr/local/bin/docker-compose up -d 2> /dev/null /usr/local/bin/docker-compose up -d 2> /dev/null
echo "Waiting 60 seconds for Graylog to become available..."
sleep 60
cd /vagrant
curl -i -X POST \
-H "Content-Type: application/json" \
-H "X-Requested-By: cli" \
-u admin:admin \
"http://graylog.172.28.128.30.xip.io:8080/api/system/inputs" \
-d @GELFUDPInput.json
SHELL SHELL
end end