Get log types API
Last updated on:
In this page
Overview
The Get Log Types API in ManageEngine Log360 retrieves the list of log types and their corresponding IDs available in the product. Log types can be used to create search queries to filter search by log types.
Request URL
GET http://hostname:8095/RestAPI/v1/meta/log_types
Request Header
| Header name | Value | Mandatory | Description |
|---|---|---|---|
| Authorization | Bearer {{AuthToken}} | Yes | Authtoken generated from API Settings page.
e.g: |
Response
The response is a JSON object that contains the list of log types.
| Parameter name | Description |
|---|---|
| log_types | JSON Array of log types |
Executing the API using cURL
Sample request
curl --location --request GET 'http://localhost:8095/RestAPI/v1/meta/log_types' \ -H "Accept: application/json" -H "Authorization: Bearer mdrkoda0odmtmznloc00ndziltg0mgutmwzkztljmjvmzwmx "
Sample response
{ "log_types": [ { "client_value": "Windows", "server_value": "Windows" }, { "client_value": "Unix", "server_value": "Unix" }, { "client_value": "Hypervisor/ESXi", "server_value": "Hypervisor" }, { "client_value": "Cisco Device", "server_value": "Cisco Device" } ] }
Executing the API using Postman
Read also
This page explained how to retrieve the list of log types using Log360's REST API.