lhs-panel Click here to expand

Get log fields API

The API returns the list of parsed log field from processed logs available in EventLog Analyzer. Log Fields can be used to create search queries.

Request URL

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

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
fields JSON Array of fields

Example usage using cURL

Sample request

Copy to Clipboard

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

Sample response:

Copy to Clipboard

{ "fields": [ { "description": "Severity", "id": "SEVERITY" }, { "description": "Facility", "id": "FACILITY" }, { "description": "Source", "id": "SOURCE" }, { "description": "Event Name", "id": "IENAME" }, { "description": "Username", "id": "USERNAME" } ] }

Example usage using Postman (Third party tool)

Get log fields API

Copyright © 2020, ZOHO Corp. All Rights Reserved.

Get download link