Getting Access Log Details

Last updated on 07 March, 2024

You can use LogicMonitor REST API v3 to get access log details. You must authenticate yourself before making the API request.

URI: GET /setting/accesslogs

ParameterTypeDescription
formatStringIt is the response format of the API. The default format is JSON. Alternatively, you can set it as CSV for downloading CSV file that contains audit log details.
fieldsStringUse this parameter to include only the specified fields for each access log entry in the response. You can provide a list of properties separated by a comma. 
Example – /setting/accesslogs?fields=description,username
sizeIntegerIndicates the number of access log entries to display. A maximum of 1000 results can be requested in a GET call. By default, a list of 50 access log entries is returned if a value is not provided for this parameter.The access log entries are sorted as per the value in the happenedOn range and are placed in a decreasing order.
Example – /setting/accesslogs?size=5
offsetIntegerThe number of entries to offset the displayed access log entries. By default, the offset is set to 0.
Example – /setting/accesslogs?offset=2
filterStringUse this parameter to include only those access log entries that have keyword and timestamp in the specified happenedOn range.
Glob expressions with an asterisk (*) on both the ends are accepted. The accepted happenedOn operators are:
Greater than or equals: >:
Less than or equals: <:
Note: If you specify a happenedOn range where the number of entries exceeds 50, the “total” reflects the total number of entries in the range but only 50 entries are displayed. Typically, the syntax is filter=_all~*keyword*, happenedOn>:value
Example – /setting/accesslogs?filter=_all~sarah

You can use the description filter to perform exact text search. The response fetches the result that exactly match with the value specified in the description field.
Example – {{url}}/setting/accesslogs?filter=description~"update value=false, old value=true"