Get log fields API

Last updated on:

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:8095/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:8095/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 sources API