Returns log dates and entry counts for a specified log type over the last 365 days. Returns one entry per day in the window, including days with zero entries. Use this API to discover which dates have log data before calling GetLogs to retrieve the actual entries.
To control the lookback window explicitly, use GetLogStatistics1.
/srv.asmx/GetLogStatistics
/srv.asmx/GetLogStatistics?authenticationTicket=...&logType=.../srv.asmx/GetLogStatistics (form data)http://tempuri.org/GetLogStatistics| Parameter | Type | Required | Description |
|---|---|---|---|
authenticationTicket |
string | Yes | Authentication ticket obtained from AuthenticateUser |
logType |
string | Yes | The type of log to query (see valid values below) |
| Value | Description |
|---|---|
Errors |
Application error logs |
LoginAttempts |
Failed login attempt logs |
Logins |
Successful login logs |
Notifications |
Email notification logs |
The logType parameter is case-insensitive.
<root success="true">
<Statistics>
<Value>
<LogDate>2025-01-13</LogDate>
<Count>5</Count>
</Value>
<Value>
<LogDate>2025-01-14</LogDate>
<Count>0</Count>
</Value>
<Value>
<LogDate>2025-01-15</LogDate>
<Count>12</Count>
</Value>
</Statistics>
</root>
| Element | Type | Description |
|---|---|---|
Statistics |
container | Contains one Value entry per day in the 365-day window |
Value |
container | A single date entry |
LogDate |
string | The date in yyyy-MM-dd format, counting back from today |
Count |
int | Number of log entries for that date; 0 when no log file exists for the date |
<root success="false" error="[ErrorCode] Error message" />
The caller must be a System Administrator.
GET /srv.asmx/GetLogStatistics?authenticationTicket=abc123-def456&logType=Errors HTTP/1.1
POST /srv.asmx/GetLogStatistics HTTP/1.1
Content-Type: application/x-www-form-urlencoded
authenticationTicket=abc123-def456&logType=Logins
POST /srv.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/GetLogStatistics"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetLogStatistics xmlns="http://tempuri.org/">
<authenticationTicket>abc123-def456</authenticationTicket>
<logType>Errors</logType>
</GetLogStatistics>
</soap:Body>
</soap:Envelope>
Count=0Count is the number of XML child elements in the log file for that dateLogDate values as the logDate parameter when calling GetLogsGetLogStatistics1