Get log sources API
Last updated on:
The API returns the list of log sources available in EventLog Analyzer.
Request URL
Request Header
| Header name | Value | Mandatory | Description |
|---|---|---|---|
| Authorization | Bearer {{AuthToken}} | Yes | Authtoken generated from API Settings page.
e.g: Bearer mdrkoda0odmtmznloc00ndziltg0mgutmwzkztljmjvmzwmx |
Request Parameter
| Parameter name | Default value | Mandatory | Description |
|---|---|---|---|
| From | 1 | No | Start value of the list |
| To | 10 | No | End value of the list |
Response
The response will be a JSON object which will contain the list of devices.
| Parameter name | Description |
|---|---|
| devices | JSON Array of devices |
Example usage using cURL
Sample request
curl --location --request GET 'http://localhost:8095/RestAPI/v1/meta/log_sources' \ -H "Accept: application/json" -H "Authorization: Bearer mdrkoda0odmtmznloc00ndziltg0mgutmwzkztljmjvmzwmx " --data-raw '{ "from": 0, "to": 10 }'
Sample response:
{ "devices": [ { "name": "tsi2k16adc", "ip_address": "202.0.112.248", "host_id": 3, "group": "WindowsGroup" }, { "name": "rog", "ip_address": "172.23.64.1", "host_id": 301, "group": "Windows Workstation" } ] }
Example usage using Postman (Third party tool)