Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Linux Script/configure-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -880,11 +880,11 @@ searchAndFetch() {
logMsgToConfigSysLog "ERROR" "ERROR: Please check your network/firewall settings & ensure Loggly subdomain, username and password is specified correctly."
exit 1
fi
id=$(echo "$result" | grep -v "{" | grep id | awk '{print $2}')
# strip last double quote from id
id="${id%\"}"
# strip first double quote from id
id="${id#\"}"
# remove newline characters
result=${result//$'\n'/}

id=$(echo "$result" | sed -E 's/.*"id"\s*:\s*"([^"]+)".*/\1/g')

url="$LOGGLY_ACCOUNT_URL/apiv2/events?rsid=$id"

# retrieve the data
Expand Down