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
_10select id, storage_logs.timestamp, event_message, r.statusCode, e.message as errorMessage e.raw as rawError_10 from storage_logs_10 cross join unnest(metadata) as m_10 cross join unnest(m.res) as r_10 cross join unnest(m.error) as e_10 where r.statusCode >= 500_10 order by timestamp desc_10 limit 100
Filter by status 4XX error
_10select id, storage_logs.timestamp, event_message, r.statusCode, e.message as errorMessage e.raw as rawError_10 from storage_logs_10 cross join unnest(metadata) as m_10 cross join unnest(m.res) as r_10 cross join unnest(m.error) as e_10 where r.statusCode >= 400 and r.statusCode < 500_10 order by timestamp desc_10 limit 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;