Update functions.sh

This commit is contained in:
Søren Theilgaard
2022-01-12 13:55:40 +01:00
parent a36e9fce43
commit c0ce59a1ec

View File

@@ -117,6 +117,7 @@ printlog(){
curl -s -X POST https://http-intake.logs.datadoghq.com/v1/input -H "Content-Type: text/plain" -H "DD-API-KEY: $datadogAPI" -d "${log_priority} : $mdmURL : $APPLICATION : $VERSIONDATE : $SESSION : Last Log repeated ${logrepeat} times" > /dev/null curl -s -X POST https://http-intake.logs.datadoghq.com/v1/input -H "Content-Type: text/plain" -H "DD-API-KEY: $datadogAPI" -d "${log_priority} : $mdmURL : $APPLICATION : $VERSIONDATE : $SESSION : Last Log repeated ${logrepeat} times" > /dev/null
fi fi
logrepeat=0 logrepeat=0
fi
# If the datadogAPI key value is set and our logging level is greaterthan or equal to our set level # If the datadogAPI key value is set and our logging level is greaterthan or equal to our set level
# then post to Datadog's HTTPs endpoint. # then post to Datadog's HTTPs endpoint.