| |
@@ -19,8 +19,9 @@
|
| |
# along with Fedora Project Infrastructure Ansible Repository. If
|
| |
# not, see <http://www.gnu.org/licenses/>.
|
| |
|
| |
- RUN_ID="$(uuidgen -r)"
|
| |
- simple_message_to_bus combinehttplogs.start run_id="$RUN_ID"
|
| |
+ export MSGTOPIC_PREFIX=logging.stats
|
| |
+ export MSGBODY_PRESET="loghost=$(hostname) run_id=$(uuidgen -r)"
|
| |
+ simple_message_to_bus combinehttplogs.start
|
| |
|
| |
# Some constants / standard paths
|
| |
LOGDIR=/var/log/hosts
|
| |
@@ -82,9 +83,9 @@
|
| |
|
| |
for FILE in ${FILES}; do
|
| |
TEMP=$(echo ${FILE} | sed 's/\.xz$//')
|
| |
- simple_message_to_bus combinehttplogs.logmerge.proxy.start run_id="$RUN_ID" log="$PROXYLOG" file="$FILE" target="$TARGET" temp="$TEMP"
|
| |
+ simple_message_to_bus combinehttplogs.logmerge.proxy.start log="$PROXYLOG" file="$FILE" target="$TARGET" temp="$TEMP"
|
| |
perl ${LOGMERGE} ${PROXYLOG}/${FILE} > ${TARGET}/${TEMP}
|
| |
- simple_message_to_bus combinehttplogs.logmerge.proxy.finish run_id="$RUN_ID" log="$PROXYLOG" file="$FILE" target="$TARGET" temp="$TEMP" result="$?"
|
| |
+ simple_message_to_bus combinehttplogs.logmerge.proxy.finish log="$PROXYLOG" file="$FILE" target="$TARGET" temp="$TEMP" result="$?"
|
| |
done
|
| |
|
| |
##
|
| |
@@ -93,9 +94,9 @@
|
| |
|
| |
for FILE in ${FILES}; do
|
| |
TEMP=$(echo ${FILE} | sed 's/\.xz$//')
|
| |
- simple_message_to_bus combinehttplogs.logmerge.download.start run_id="$RUN_ID" proxylog="$DL_LOG" file="$FILE" target="$TARGET" temp="$TEMP"
|
| |
+ simple_message_to_bus combinehttplogs.logmerge.download.start proxylog="$DL_LOG" file="$FILE" target="$TARGET" temp="$TEMP"
|
| |
perl ${LOGMERGE} ${DL_LOG}/${FILE} > ${TARGET}/${TEMP}
|
| |
- simple_message_to_bus combinehttplogs.logmerge.download.finish run_id="$RUN_ID" proxylog="$DL_LOG" file="$FILE" target="$TARGET" temp="$TEMP" result="$?"
|
| |
+ simple_message_to_bus combinehttplogs.logmerge.download.finish proxylog="$DL_LOG" file="$FILE" target="$TARGET" temp="$TEMP" result="$?"
|
| |
done
|
| |
|
| |
##
|
| |
@@ -106,9 +107,9 @@
|
| |
|
| |
for FILE in ${FILES}; do
|
| |
TEMP=$(echo ${FILE} | sed 's/\.xz$//')
|
| |
- simple_message_to_bus combinehttplogs.logmerge.people.start run_id="$RUN_ID" proxylog="$PEOPLE" file="$FILE" target="$TARGET" temp="$TEMP"
|
| |
+ simple_message_to_bus combinehttplogs.logmerge.people.start proxylog="$PEOPLE" file="$FILE" target="$TARGET" temp="$TEMP"
|
| |
perl ${LOGMERGE} ${PEOPLE}/${FILE} > ${TARGET}/${TEMP}
|
| |
- simple_message_to_bus combinehttplogs.logmerge.people.finish run_id="$RUN_ID" proxylog="$PEOPLE" file="$FILE" target="$TARGET" temp="$TEMP" result="$?"
|
| |
+ simple_message_to_bus combinehttplogs.logmerge.people.finish proxylog="$PEOPLE" file="$FILE" target="$TARGET" temp="$TEMP" result="$?"
|
| |
done
|
| |
|
| |
# Now we link up the files into latest directory
|
| |
@@ -125,4 +126,4 @@
|
| |
done
|
| |
popd &> /dev/null
|
| |
fi
|
| |
- simple_message_to_bus combinehttplogs.finish run_id="$RUN_ID"
|
| |
+ simple_message_to_bus combinehttplogs.finish
|
| |
The
simple_message_to_busscript as deployed on log01 has diverged from how it is defined in Ansible, probably due to hotfixing things. This PR aims to clean up the situation by doing this:PATHis set in/etc/crontaband contains/usr/local/binMSGTOPIC_PREFIXsimple_message_to_bussetMSGBODY_PRESETto define items which should be present in all sent messagesThis PR is based on top of #766 which should be merged first.