Commit 1a951adb authored by Xiaowu Zhang's avatar Xiaowu Zhang

try to upload

parent f4b69262
......@@ -2,7 +2,8 @@
flush 5
[INPUT]
name cpu
name tail
path /var/log/metadata_collect.log
[output]
name wendelin_fluentbit
......
......@@ -12,8 +12,21 @@ ERP5_PASS="$(ERP5_PASS)"
REFERENCE="COMP-MAC-$$(echo "$$DEFAULT_IF_MAC" | sed s/:/-/g).Metadata.Snapshot"
/sbin/metadata-collect-agent "$$NEWROOT" "$$ERP5_USER" "$$ERP5_PASS" "$$REFERENCE" "$$ERP5_BASE_URL"
/sbin/fluent-bit -e /etc/out_gstdout.so -c /etc/flb.conf
touch /var/log/metadata_collect.log
/sbin/fluent-bit -e /etc/out_gstdout.so -c /etc/flb.conf &
#/sbin/metadata-collect-agent "$$NEWROOT" "$$ERP5_USER" "$$ERP5_PASS" "$$REFERENCE" "$$ERP5_BASE_URL"
echo "[2020: 2122222]" >> /var/log/metadata_collect.log
echo "[2020: 1234232]" >> /var/log/metadata_collect.log
fluent_bit_is_running="$$(ps -ef | grep "fluent-bit" | grep -v "grep")"
while [ -z "$${fluent_bit_is_running}" ];do
sleep(5)
done
endef
export collect_sh
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment