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:
parent
df4f153695
commit
163f140726
14
GELFUDPInput.json
Normal file
14
GELFUDPInput.json
Normal 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
9
Vagrantfile
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user