Is it possible to check log for S3 calls answered as 403 or 404?
Applies to
NetApp StorageGRID
Answer
- Individual S3 queries which are answered as
403
or404
can be checked in thebycast-err.log
in/var/local/log
on the primary admin node
Example:
Oct 6 07:32:01 AMS-ADM1 NMS: |2020-10-06T07:32:01.829| ERROR Object 'multipart-upload/test.log' not found. (MgmtApi::LocalizedValidationError)
Oct 6 07:32:01 AMS-ADM1 NMS: |2020-10-06T07:32:01.829| ERROR /usr/local/lib/site_ruby/mgmt-api/objects/metadata.rb:108:in `rescue in find'
Oct 6 07:32:01 AMS-ADM1 NMS: |2020-10-06T07:32:01.829| ERROR /usr/local/lib/site_ruby/mgmt-api/objects/metadata.rb:99:in `find'
Oct 6 07:32:01 AMS-ADM1 NMS: |2020-10-06T07:32:01.829| ERROR /usr/local/mgmt-api/app/controllers/objects.rb:29:in `block in registered'
- In 11.5 and later, S3 responses (HTTP XXX) can be viewed and graphed in Prometheus metrics page (
https://ADMIN_NODE/metrics/graph
) understoragegrid_s3_requests_total
.
Additional Information