Logs
Accessing the Storage Logs allows you to examine all incoming request logs to your Storage service. You can also filter logs and delve into specific aspects of your requests.
Common log queries
Filter by status 5XX error
_15select_15 id,_15 storage_logs.timestamp,_15 event_message,_15 r.statusCode,_15 e.message as errorMessage,_15 e.raw as rawError_15from_15 storage_logs_15 cross join unnest(metadata) as m_15 cross join unnest(m.res) as r_15 cross join unnest(m.error) as e_15where r.statusCode >= 500_15order by timestamp desc_15limit 100;
Filter by status 4XX error
_15select_15 id,_15 storage_logs.timestamp,_15 event_message,_15 r.statusCode,_15 e.message as errorMessage,_15 e.raw as rawError_15from_15 storage_logs_15 cross join unnest(metadata) as m_15 cross join unnest(m.res) as r_15 cross join unnest(m.error) as e_15where r.statusCode >= 400 and r.statusCode < 500_15order by timestamp desc_15limit 100;
Filter by method
_10select id, storage_logs.timestamp, event_message, r.method_10from_10 storage_logs_10 cross join unnest(metadata) as m_10 cross join unnest(m.req) as r_10where r.method in ("POST")_10order by timestamp desc_10limit 100;
Filter by IP address
_10select id, storage_logs.timestamp, event_message, r.remoteAddress_10from_10 storage_logs_10 cross join unnest(metadata) as m_10 cross join unnest(m.req) as r_10where r.remoteAddress in ("IP_ADDRESS")_10order by timestamp desc_10limit 100;