1
0
mirror of https://github.com/krislamo/graylog_demo synced 2025-10-23 13:28:33 +00:00

Install Fluentd's input during initial provision

This commit is contained in:
2020-02-25 15:44:12 -05:00
parent df4f153695
commit 163f140726
2 changed files with 23 additions and 0 deletions

9
Vagrantfile vendored
View File

@@ -60,6 +60,15 @@ Vagrant.configure("2") do |config|
/usr/local/bin/docker-compose up -d 2> /dev/null
cd /vagrant/wordpress
/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
end