lhs-panel Click here to expand

Get log types API

The API returns the list of log types along with their ids available in EventLog Analyzer. Log types can be used to create search queries to filter search by log types.

Request URL

GET http://hostname:8400/RestAPI/v1/meta/log_types

Request Header

Header name Value Mandatory Description
Authorization Bearer {{AuthToken}} Yes Authtoken generated from API Settings page.

e.g:
Bearer
mdrkoda0odmtmznloc00ndziltg0mgutmwzkztljmjvmzwmx

Response

The response will be a JSON object which will contain the list of fields.

Parameter name Description
log_types JSON Array of log types

Example usage using cURL

Sample request

Copy to Clipboard

curl --location --request GET 'http://localhost:8400/RestAPI/v1/meta/log_types' \ -H "Accept: application/json" -H "Authorization: Bearer mdrkoda0odmtmznloc00ndziltg0mgutmwzkztljmjvmzwmx "

Sample response:

Copy to Clipboard

{ "log_types": [ { "description": "Windows", "id": "Windows" }, { "description": "Unix", "id": "Unix" }, { "description": "Hypervisor/ESXi", "id": "Hypervisor" }, { "description": "Cisco Device", "id": "Cisco Device" } ] }

Example eusag using Postman (Third party tool)

Get log types API

Copyright © 2020, ZOHO Corp. All Rights Reserved.

Get download link