mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-29 19:24:26 +03:00
sync code
This commit is contained in:
@@ -157,7 +157,9 @@ send_notification_to_the_fog()
|
||||
DATE=$(date "+%FT%T.000")
|
||||
upload_res=$(curl -o /dev/null -s -w "%{http_code}\n" --request POST "$var_fog/api/v1/agents/events/bulk" \
|
||||
-H "X-Trace-Id:${correlation_id}" --header "Authorization: Bearer ${ra_token}" \
|
||||
--header "user-agent: Infinity Next (a7030abf93a4c13)" --header "Content-Type: application/json" \
|
||||
--header "user-agent: Infinity Next (a7030abf93a4c13)" \
|
||||
--header "Content-Type: application/json" \
|
||||
--header "x-rate-limit-product-type: openappsec" \
|
||||
--data "{\"logs\": [{\"log\": {\"eventTime\": \"$DATE\",\"eventName\": \
|
||||
\"Agent started onboarding process to cloud management\",\"eventSeverity\": \"Info\",\"eventPriority\": \
|
||||
\"Urgent\",\"eventLogLevel\": \"info\",\"eventType\": \"Event Driven\",\"eventLevel\": \"Log\",\"eventAudience\": \
|
||||
@@ -171,7 +173,9 @@ send_notification_to_the_fog()
|
||||
sleep 5
|
||||
upload_res=$(curl -o /dev/null -s -w "%{http_code}\n" --request POST "$var_fog/api/v1/agents/events/bulk" \
|
||||
-H "X-Trace-Id:${correlation_id}" --header "Authorization: Bearer ${ra_token}" \
|
||||
--header "user-agent: Infinity Next (a7030abf93a4c13)" --header "Content-Type: application/json" \
|
||||
--header "user-agent: Infinity Next (a7030abf93a4c13)" \
|
||||
--header "Content-Type: application/json" \
|
||||
--header "x-rate-limit-product-type: openappsec" \
|
||||
--data "{\"logs\": [{\"log\": {\"eventTime\": \"$DATE\",\"eventName\": \
|
||||
\"Agent started onboarding process to cloud management\",\"eventSeverity\": \"Info\",\"eventPriority\": \
|
||||
\"Urgent\",\"eventLogLevel\": \"info\",\"eventType\": \"Event Driven\",\"eventLevel\": \"Log\",\
|
||||
|
Reference in New Issue
Block a user