splunk / docker-itmonitoring

Get Started with Streaming your Docker Logs and Stats in Splunk!
http://www.splunk.com/containers
Apache License 2.0
68 stars 21 forks source link

universal forwarder: scripts docker_service.sh contains invalid commands #19

Open ghost opened 6 years ago

ghost commented 6 years ago

I am pulling splunk/universalforwarder:7.0.0-monitor

and this is the content of the docker_service.sh script (the docker service ls command at the end of the file)


!/bin/bash

DOCKER_BIN=$(dirname "$0")/docker "$DOCKER_BIN" service ls \ | tail -n +2 \ | sed -e "s/,/ /g" \ | sed -E "s/\s\s+/,/g"

docker service ls | tail -n +2 | sed -e "s/ /,/g"