getLogsCount

Get the total count of audit logs matching the specified criteria.

Examples

query GetLogsCount($input: GetLogsInput) {
  getLogsCount(input: $input) {
    count
  }
}

Variables

This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.

{
  "input": {
    "logTypes": ["Authentication"],
    "logNames": ["AddCredentials"],
    "userEmails": ["example"],
    "limit": 100,
    "skip": 0,
    "orderBy": {
      "field": "example",
      "direction": "ASC"
    },
    "dateRange": {
      "from": "1672531200000",
      "to": "1704067199000"
    }
  }
}

Arguments

You can use the following argument(s) to customize your getLogsCount query.

Argument
Description
Supported fields

Filter parameters for counting audit logs

logTypes [LogType!] logNames [LogName!] userEmails [String!] limit Float skip Float orderBy LogOrderBy dateRange LogDateRange

Fields

Return type: AuditLogCount!

You can use the following field(s) to specify what information your getLogsCount query will return. Please note that some fields may have their own subfields.

Field
Description
Supported fields

count Float

Total number of matching audit log entries

Last updated