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": [ "TIME", "SEVERITY", "FACILITY", "SOURCE", "PROCESSID", "IENAME", "USERNAME", "REMOTEHOST" ] }

    Example usage using Postman (Third party tool)

    Get log fields API

    Don't see what you're looking for?

    •  

      Visit our community

      Post your questions in the forum.

       
    •  

      Request additional resources

      Send us your requirements.

       
    •  

      Need implementation assistance?

      Try onboarding

       
    Get download link