Skip to main content
POST
/
shield
/
event-logs
/
{shieldZoneId}
/
export
Export the full filtered Event Logs set for a Shield Zone as CSV
curl --request POST \
  --url https://api.bunny.net/shield/event-logs/{shieldZoneId}/export \
  --header 'Content-Type: application/json' \
  --data '
{
  "from": 123,
  "to": 123,
  "query": "<string>",
  "filters": [
    {
      "field": "<string>",
      "op": "<string>",
      "value": [
        "<string>"
      ]
    }
  ]
}
'
"<string>"

Path Parameters

shieldZoneId
integer<int32>
required

The ID of the Shield Zone.

Body

Request body for exporting a Shield Zone's full filtered Event Logs set as CSV.

from
integer<int64>

Window start as Unix time in milliseconds (UTC). Required.

to
integer<int64>

Window end as Unix time in milliseconds (UTC). Required; must be after BunnyNet.Shield.Api.Entities.Waf.WafLogging.EventLogsExportRequest.from and within the last 72 hours.

query
string | null

Optional free-text search across IP, ruleId, URL, User-Agent and rule name.

filters
object[] | null

Optional filters, combined with AND. Repeated values within one filter combine with OR.

Response

OK

The response is of type file.

Last modified on July 4, 2026