Get log types API
Last updated on:
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
Request Header
| Header name | Value | Mandatory | Description |
|---|---|---|---|
| Authorization | Bearer {{AuthToken}} | Yes | Authtoken generated from API Settings page.
e.g: |
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
curl --location --request GET 'http://localhost:8095/RestAPI/v1/meta/log_types' \ -H "Accept: application/json" -H "Authorization: Bearer mdrkoda0odmtmznloc00ndziltg0mgutmwzkztljmjvmzwmx "
Sample response:
{ "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)