f9a7054
f7dd584
1 2 3
4 5 6 7 8 9 10 11 12 13
#!/usr/bin/env bash set -e function checkDrain { clever drain | grep "${SYSLOG_UDP_SERVER}" } function setDrain { clever drain create UDPSyslog "udp://${SYSLOG_UDP_SERVER}" } checkDrain || setDrain