diff --git a/test/remote.sh b/test/remote.sh index 7496aa8..69e5a6e 100755 --- a/test/remote.sh +++ b/test/remote.sh @@ -8,7 +8,8 @@ fi MSG="kilroy" # Start collector in background, note: might need sudo! -tshark -Qni lo -w ${CAP} port ${PORT} & +#tshark -Qni lo -w ${CAP} port ${PORT} & +tshark -Qni lo -w ${CAP} port 514 & PID="$!" # Wait for tshark to start up properly @@ -24,6 +25,7 @@ kill -TERM ${PID} wait ${PID} # Analyze content, should have $MSG now ... -tshark -d udp.port==${PORT},syslog -r ${CAP} | grep ${MSG} +#tshark -d udp.port==${PORT},syslog -r ${CAP} | grep ${MSG} +tshark -r ${CAP} | grep ${MSG} rm ${CAP} diff --git a/test/start.sh b/test/start.sh index 66272c9..c8b740d 100755 --- a/test/start.sh +++ b/test/start.sh @@ -17,10 +17,10 @@ EOF cat < ${CONFD}/bar.conf # For remote logging -*.* @127.0.0.2:${PORT} +*.* @127.0.0.2 EOF -../src/syslogd -b :${PORT} -d -n -f ${CONF} -p ${SOCK} -p ${ALTSOCK} & +../src/syslogd -b :${PORT} -d -sn -f ${CONF} -p ${SOCK} -p ${ALTSOCK} & echo "$!" > ${PID} sleep 2