1. Packages
  2. Logzio Provider
  3. API Docs
  4. getDropFilter
logzio 1.17.1 published on Monday, Apr 14, 2025 by logzio

logzio.getDropFilter

Explore with Pulumi AI

# Drop Filter Datasource

Provides a Logz.io drop filter datasource. This can be used to create and manage Logz.io drop filters.

Using getDropFilter

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getDropFilter(args: GetDropFilterArgs, opts?: InvokeOptions): Promise<GetDropFilterResult>
function getDropFilterOutput(args: GetDropFilterOutputArgs, opts?: InvokeOptions): Output<GetDropFilterResult>
Copy
def get_drop_filter(drop_filter_id: Optional[str] = None,
                    field_conditions: Optional[Sequence[GetDropFilterFieldCondition]] = None,
                    id: Optional[str] = None,
                    log_type: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDropFilterResult
def get_drop_filter_output(drop_filter_id: Optional[pulumi.Input[str]] = None,
                    field_conditions: Optional[pulumi.Input[Sequence[pulumi.Input[GetDropFilterFieldConditionArgs]]]] = None,
                    id: Optional[pulumi.Input[str]] = None,
                    log_type: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDropFilterResult]
Copy
func LookupDropFilter(ctx *Context, args *LookupDropFilterArgs, opts ...InvokeOption) (*LookupDropFilterResult, error)
func LookupDropFilterOutput(ctx *Context, args *LookupDropFilterOutputArgs, opts ...InvokeOption) LookupDropFilterResultOutput
Copy

> Note: This function is named LookupDropFilter in the Go SDK.

public static class GetDropFilter 
{
    public static Task<GetDropFilterResult> InvokeAsync(GetDropFilterArgs args, InvokeOptions? opts = null)
    public static Output<GetDropFilterResult> Invoke(GetDropFilterInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDropFilterResult> getDropFilter(GetDropFilterArgs args, InvokeOptions options)
public static Output<GetDropFilterResult> getDropFilter(GetDropFilterArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: logzio:index/getDropFilter:getDropFilter
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

DropFilterId string
Drop filter ID in the Logz.io database.
FieldConditions List<GetDropFilterFieldCondition>
Filters for an exact match of a field:value pair. Note that changing this field after creation will cause the resource to be destroyed and re-created. See below for nested schema.
Id string
LogType string
Filters for the log type. Emit or leave empty if you want this filter to apply to all types. Note that changing this field after creation will cause the resource to be destroyed and re-created.
DropFilterId string
Drop filter ID in the Logz.io database.
FieldConditions []GetDropFilterFieldCondition
Filters for an exact match of a field:value pair. Note that changing this field after creation will cause the resource to be destroyed and re-created. See below for nested schema.
Id string
LogType string
Filters for the log type. Emit or leave empty if you want this filter to apply to all types. Note that changing this field after creation will cause the resource to be destroyed and re-created.
dropFilterId String
Drop filter ID in the Logz.io database.
fieldConditions List<GetDropFilterFieldCondition>
Filters for an exact match of a field:value pair. Note that changing this field after creation will cause the resource to be destroyed and re-created. See below for nested schema.
id String
logType String
Filters for the log type. Emit or leave empty if you want this filter to apply to all types. Note that changing this field after creation will cause the resource to be destroyed and re-created.
dropFilterId string
Drop filter ID in the Logz.io database.
fieldConditions GetDropFilterFieldCondition[]
Filters for an exact match of a field:value pair. Note that changing this field after creation will cause the resource to be destroyed and re-created. See below for nested schema.
id string
logType string
Filters for the log type. Emit or leave empty if you want this filter to apply to all types. Note that changing this field after creation will cause the resource to be destroyed and re-created.
drop_filter_id str
Drop filter ID in the Logz.io database.
field_conditions Sequence[GetDropFilterFieldCondition]
Filters for an exact match of a field:value pair. Note that changing this field after creation will cause the resource to be destroyed and re-created. See below for nested schema.
id str
log_type str
Filters for the log type. Emit or leave empty if you want this filter to apply to all types. Note that changing this field after creation will cause the resource to be destroyed and re-created.
dropFilterId String
Drop filter ID in the Logz.io database.
fieldConditions List<Property Map>
Filters for an exact match of a field:value pair. Note that changing this field after creation will cause the resource to be destroyed and re-created. See below for nested schema.
id String
logType String
Filters for the log type. Emit or leave empty if you want this filter to apply to all types. Note that changing this field after creation will cause the resource to be destroyed and re-created.

getDropFilter Result

The following output properties are available:

Active bool
If true, the drop filter is active and logs that match the filter are dropped before indexing. If false, the drop filter is disabled. Note this argument can only be changed after the creation of the filter. Each filter is created with the active argument set to true.
DropFilterId string
Id string
LogType string
FieldConditions List<GetDropFilterFieldCondition>
Active bool
If true, the drop filter is active and logs that match the filter are dropped before indexing. If false, the drop filter is disabled. Note this argument can only be changed after the creation of the filter. Each filter is created with the active argument set to true.
DropFilterId string
Id string
LogType string
FieldConditions []GetDropFilterFieldCondition
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. Note this argument can only be changed after the creation of the filter. Each filter is created with the active argument set to true.
dropFilterId String
id String
logType String
fieldConditions List<GetDropFilterFieldCondition>
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. Note this argument can only be changed after the creation of the filter. Each filter is created with the active argument set to true.
dropFilterId string
id string
logType string
fieldConditions GetDropFilterFieldCondition[]
active bool
If true, the drop filter is active and logs that match the filter are dropped before indexing. If false, the drop filter is disabled. Note this argument can only be changed after the creation of the filter. Each filter is created with the active argument set to true.
drop_filter_id str
id str
log_type str
field_conditions Sequence[GetDropFilterFieldCondition]
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. Note this argument can only be changed after the creation of the filter. Each filter is created with the active argument set to true.
dropFilterId String
id String
logType String
fieldConditions List<Property Map>

Supporting Types

GetDropFilterFieldCondition

FieldName This property is required. string
Value This property is required. string
FieldName This property is required. string
Value This property is required. string
fieldName This property is required. String
value This property is required. String
fieldName This property is required. string
value This property is required. string
field_name This property is required. str
value This property is required. str
fieldName This property is required. String
value This property is required. String

Package Details

Repository
logzio logzio/terraform-provider-logzio
License
Notes
This Pulumi package is based on the logzio Terraform Provider.