Skip to main content

Drop Filters

Drop filters offer a great way to filter out logs from an account to help manage your account volume and lower costs.

Drop filters evaluate logs for field:value exact matches. Incoming logs that match your account's active drop filters will not be indexed and will not appear in your OpenSearch Dashboards account. Dropped logs are not searchable, cannot trigger alerts, and will not appear in dashboards, reports, or anything else. However, dropped logs will be archived if you are archiving logs.

The following diagram explains how Drop filters are applied when sending data to Logz.io:

Drop filters overview

You can turn drop filters on and off, as often as you like, making them ideal for logs that are only needed sometimes.

In general, drop filters are recommended for logs that are needed infrequently, while logs that are never needed should not be shipped at all.

To set up your Drop filters, select Data Hub > Drop filters > Logs from the navigation menu.

You can apply Drop filters to your logs, metrics, and traces.

How much data can I filter?

  • You can use Drop filters to drop as much as twice your plan's daily volume. In other words, drop filters can drop up to 200% of your daily volume.

    For instance: If you have 50 GB daily volume, you can index 50 GB and filter 100 GB per day.

  • You can add up to 10 drop filters.

Deactivating drop filters

Your account needs to have enough space to accommodate logs when you deactivate a drop filter. If you expect to go over your daily limit, please contact the Support team or your account manager.

Some important notes on drop filtering

  • Dropped logs can't be searched in OpenSearch Dashboards and they can't trigger alerts. \ All incoming logs are compared to your drop filters. Logs that meet your filter criteria are dropped, meaning they won't be parsed and indexed.

  • Dropped logs are still archived. \ If you have [archiving enabled, your logs will be archived before they're dropped. This means that you can restore from your archives, even if the logs didn't originally make it to OpenSearch Dashboards.

  • Restored logs pass through drop filters. \ If you're restoring logs from an archive, turn off drop filters if you want them to be indexed in your OpenSearch Dashboards account. When restoring, always make sure that the logs you need are not filtered out using drop filters.

  • Working with "dotted fields". \ Applying drop filters when your logs include dotted fields is a more complicated scenario: Dotted fields don't work in a drop filter. To use a dotted field to trigger a drop filter, please contact the Logz.io Support team.

    Example In the image below, "data.level" is dotted, and not nested. The field "data.level": "DEBUG" can't be used to trigger a drop filter for the log.

Dotted fields and drop filters

Set up a drop filter

To get started, click Add drop filter to open the New drop filter form.

New drop filter form

1. Choose a log type

If you choose a Log type, only logs of that type are dropped.

To include all log types, leave Log type blank.

2. Add fields to filter

Add up to 3 Field:Value pairs to filter. Each pair must be an exact match. Drop filters are case sensitive.

An example

Logs from a Docker container might contain this field-value pair:

{ "docker.container.name": "system-logs" }

Those logs are only filtered if we set Field to docker.container.name and Value to system-logs.

If we set Value to anything else—such as system—those logs are not filtered.

3. Confirm and save

Before saving, it's important to know that all the logs that meet your filter criteria will be dropped.

If you have [Archiving enabled, your logs will be archived before they're dropped.

Select the confirmation check box, and then click Apply the filter.