lhs-panel Click here to expand

Get log sources API

The API returns the list of log sources available in EventLog Analyzer.

Request URL

GET http://hostname:8400/RestAPI/v1/meta/log_sources?from=1&to=10

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

Copy to Clipboard

curl --location --request GET 'http://localhost:8400/RestAPI/v1/meta/log_sources' \ -H "Accept: application/json" -H "Authorization: Bearer mdrkoda0odmtmznloc00ndziltg0mgutmwzkztljmjvmzwmx " --data-raw '{ "from": 0, "to": 10 }'

Sample response:

Copy to Clipboard

{ "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)

Get log sources API

Copyright © 2020, ZOHO Corp. All Rights Reserved.

Get download link