Skip to main content

Create drop filter

POST 

/v1/drop-filters

Creates and activates a new drop filter. Please ensure to change the region in the URL to match your account's region.

Request

Body

    logType stringnullable

    Filters for the log type.

    fieldConditions object[]
  • Array [
  • fieldName string

    Exact field name in your Kibana mapping for the selected logType.

    value object

    Exact field value. The filter looks for an exact value match of the entire string.

  • ]

Responses

successful operation

Response Headers
    Schema
      id string

      Drop filter ID in the Logz.io database. You can run the /v1/drop-filters/search endpoint to retrieve the IDs of all the drop filters in the account.

      active boolean

      If true, the drop filter is active and logs that match the filter are dropped before indexing. If false, the drop filter is disabled.

      logType string

      Filters for the log type.

      fieldConditions object[]

      Filters for an exact match of a field:value pair.

    • Array [
    • fieldName string

      Exact field name in your Kibana mapping for the selected logType.

      value object

      Exact field value. The filter looks for an exact value match of the entire string.

    • ]
    Loading...