Access Logging
Accessing Logs
Enable Central Logging
curl -X "POST" "https://api.ionos.com/cloudapi/v6/datacenters/{datacenterId}/networkloadbalancers" \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer TOKEN' \
-d '{
"type": "networkloadbalancer",
"metadata": {},
"properties": {
"name": "My Network Load Balancer",
"listenerLan": 1,
"ips": [
"81.173.1.2",
"22.231.2.2",
"22.231.2.3"
],
"targetLan": 2,
"lbPrivateIps": [
"81.173.1.5/24",
"22.231.2.5/24"
],
"centralLogging": true,
"loggingFormat": "%{+Q}o %{-Q}ci - - [%trg] %r %ST %B \"\" \"\" %cp %ms %ft %b %s %TR %Tw %Tc %Tr %Ta %tsc %ac %fc %bc %sc %rc %sq %bq %CC %CS %hrl %hsl"
},
"entities": {
"flowlogs": {
"type": "collection",
"offset": 0,
"limit": 1000,
"_links": {}
},
"forwardingrules": {
"type": "collection",
"offset": 0,
"limit": 1000,
"_links": {}
}
}
}'Last updated
Was this helpful?