> For the complete documentation index, see [llms.txt](https://dev.guardian.hedera.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.guardian.hedera.com/static-spec-test/platform/logs.md).

# Logs

## Return a list of all logs.

> Return a list of all logs. Only users with the Standard Registry role are allowed to make the request.

```json
{"openapi":"3.0.0","info":{"title":"Guardian","version":"0.0.1"},"tags":[{"name":"logs"}],"servers":[{"url":"/api/v1","description":"version 1.0"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"LogFilterDTO":{"type":"object","properties":{"type":{"type":"string","enum":["INFO","WARN","ERROR"],"nullable":true,"description":"Log severity filter. When empty, all logs are returned."},"startDate":{"type":"string","format":"date-time","nullable":true},"endDate":{"type":"string","format":"date-time","nullable":true},"attributes":{"nullable":true,"type":"array","items":{"type":"string"}},"message":{"type":"string","nullable":true},"pageSize":{"type":"number","nullable":true},"pageIndex":{"type":"number","nullable":true},"sortDirection":{"type":"string","enum":["asc","desc"],"nullable":true,"description":"Sort order"}},"required":["type","startDate","endDate","attributes","message","pageSize","pageIndex","sortDirection"]},"LogResultDTO":{"type":"object","properties":{"totalCount":{"type":"number"},"logs":{"type":"array","items":{"$ref":"#/components/schemas/LogItemDTO"}}},"required":["totalCount","logs"]},"LogItemDTO":{"type":"object","properties":{"message":{"type":"string"},"type":{"type":"string","enum":["INFO","WARN","ERROR"]},"datetime":{"type":"string","format":"date-time"},"attributes":{"type":"array","items":{"type":"string"}},"userId":{"type":"string","nullable":true},"id":{"type":"string"}},"required":["message","type","datetime","attributes","userId","id"]},"UnauthorizedErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]},"ForbiddenErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"},"error":{"type":"string"}},"required":["statusCode","message"]},"InternalServerErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]}}},"paths":{"/logs":{"post":{"description":"Return a list of all logs. Only users with the Standard Registry role are allowed to make the request.","operationId":"LoggerApi_getLogs","parameters":[],"requestBody":{"required":true,"description":"Filters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogFilterDTO"}}}},"responses":{"200":{"description":"Successful operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogResultDTO"}}}},"401":{"description":"Unauthorized request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorDTO"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorDTO"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorDTO"}}}}},"summary":"Return a list of all logs.","tags":["logs"]}}}}
```

## Return a list of attributes.

> Return a list of attributes. Only users with the Standard Registry role are allowed to make the request. Response is limited to 20 items.

```json
{"openapi":"3.0.0","info":{"title":"Guardian","version":"0.0.1"},"tags":[{"name":"logs"}],"servers":[{"url":"/api/v1","description":"version 1.0"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"UnauthorizedErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]},"ForbiddenErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"},"error":{"type":"string"}},"required":["statusCode","message"]},"InternalServerErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]}}},"paths":{"/logs/attributes":{"get":{"description":"Return a list of attributes. Only users with the Standard Registry role are allowed to make the request. Response is limited to 20 items.","operationId":"LoggerApi_getAttributes","parameters":[{"name":"name","required":false,"in":"query","description":"Attribute name filter","schema":{"type":"string"}},{"name":"existingAttributes","required":false,"in":"query","description":"Existing attributes","schema":{"type":"array","items":{"type":"string"}}}],"responses":{"200":{"description":"Successful operation. Maximum 20 attribute values.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"maxItems":20}}}},"401":{"description":"Unauthorized request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorDTO"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorDTO"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorDTO"}}}}},"summary":"Return a list of attributes.","tags":["logs"]}}}}
```

## Return url on seq store.

> Return url on seq store. Only users with the Standard Registry role are allowed to make the request.

```json
{"openapi":"3.0.0","info":{"title":"Guardian","version":"0.0.1"},"tags":[{"name":"logs"}],"servers":[{"url":"/api/v1","description":"version 1.0"}],"security":[{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"schemas":{"SeqUrlResponseDTO":{"type":"object","properties":{"seq_url":{"type":"string","nullable":true,"description":"SEQ UI URL"}},"required":["seq_url"]},"UnauthorizedErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]},"ForbiddenErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"},"error":{"type":"string"}},"required":["statusCode","message"]},"InternalServerErrorDTO":{"type":"object","properties":{"statusCode":{"type":"number"},"message":{"type":"string"}},"required":["statusCode","message"]}}},"paths":{"/logs/seq":{"get":{"description":"Return url on seq store. Only users with the Standard Registry role are allowed to make the request.","operationId":"LoggerApi_getSeqUrl","parameters":[],"responses":{"200":{"description":"Successful operation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SeqUrlResponseDTO"}}}},"401":{"description":"Unauthorized request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UnauthorizedErrorDTO"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForbiddenErrorDTO"}}}},"500":{"description":"Internal server error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalServerErrorDTO"}}}}},"summary":"Return url on seq store.","tags":["logs"]}}}}
```
