59 lines
1.3 KiB
YAML
59 lines
1.3 KiB
YAML
|
mount:
|
||
|
/usr/share/logstash/data:
|
||
|
exists: true
|
||
|
/usr/share/logstash/config/logstash.yml:
|
||
|
exists: true
|
||
|
opts:
|
||
|
- ro
|
||
|
/usr/share/logstash/pipeline/uptime.conf:
|
||
|
exists: true
|
||
|
opts:
|
||
|
- ro
|
||
|
|
||
|
user:
|
||
|
logstash:
|
||
|
exists: true
|
||
|
uid: 1000
|
||
|
gid: 1000
|
||
|
|
||
|
http:
|
||
|
http://localhost:9600?pretty:
|
||
|
status: 200
|
||
|
timeout: 2000
|
||
|
body:
|
||
|
- '"version" : "8.5.1"'
|
||
|
- '"http_address" : "0.0.0.0:9600"'
|
||
|
- '"status" : "green"'
|
||
|
- '"workers" : 1'
|
||
|
- '"batch_size" : 125'
|
||
|
- '"batch_delay" : 50'
|
||
|
https://elasticsearch-master:9200/_cat/indices:
|
||
|
allow-insecure: true
|
||
|
status: 200
|
||
|
timeout: 2000
|
||
|
username: "{{ .Env.ELASTICSEARCH_USERNAME }}"
|
||
|
password: "{{ .Env.ELASTICSEARCH_PASSWORD }}"
|
||
|
body:
|
||
|
- "logstash"
|
||
|
|
||
|
file:
|
||
|
/usr/share/logstash/config/logstash.yml:
|
||
|
exists: true
|
||
|
mode: "0644"
|
||
|
owner: root
|
||
|
group: logstash
|
||
|
filetype: file
|
||
|
contains:
|
||
|
- "http.host: 0.0.0.0"
|
||
|
- "xpack.monitoring.enabled: false"
|
||
|
/usr/share/logstash/pipeline/uptime.conf:
|
||
|
exists: true
|
||
|
mode: "0644"
|
||
|
owner: root
|
||
|
group: logstash
|
||
|
filetype: file
|
||
|
contains:
|
||
|
- 'input { exec { command => "uptime" interval => 30 } }'
|
||
|
- 'hosts => ["https://elasticsearch-master:9200"]'
|
||
|
- 'index => "logstash"'
|