mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 21:02:46 +00:00
Update functions.sh
This commit is contained in:
@@ -113,10 +113,11 @@ printlog(){
|
|||||||
if [[ $logrepeat -gt 1 ]];then
|
if [[ $logrepeat -gt 1 ]];then
|
||||||
echo "$timestamp" : "${log_priority} : ${VERSIONDATE//-/} : Last Log repeated ${logrepeat} times" | tee -a $log_location
|
echo "$timestamp" : "${log_priority} : ${VERSIONDATE//-/} : Last Log repeated ${logrepeat} times" | tee -a $log_location
|
||||||
|
|
||||||
if [[ ! -z $datadogAPI ]]; then
|
if [[ ! -z $datadogAPI ]]; then
|
||||||
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
|
||||||
|
logrepeat=0
|
||||||
fi
|
fi
|
||||||
logrepeat=0
|
|
||||||
|
|
||||||
# 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.
|
||||||
|
|||||||
Reference in New Issue
Block a user