Custom Attribute Filters

George Alpizar
George Alpizar
  • Updated

Overview 

This filter type can filter for custom attributes. 

Specifically, you can enter a key to compare, and then a value to apply if the filter is matched.  


Review Parameters

Review the following parameters that you can configure in the Edge Delta App:

Visual Editor YAML Description
Name name

Enter a descriptive name for this filter.

When you create a workflow, you will use this label to enter your filter into the workflow.

This parameter is required. 

Review the following example:

custom_attributes_filter
Type type

Select (or enter) custom-attributes.

This parameter is required. 

Review the following example:

type: custom-attributes
Negate negate

You can use this parameter pass logs that do not meet the pattern. In other words, to reverse the effect of the filter, set this parameter to true.

  • For example, if you set the pattern to only collect error logs, and you set this parameter to true, then the filter will collect all logs that are not error logs.

This parameter is optional. 

Review the following example:

negate: true
Attribute Key  key

Enter a key to identify a record or value. 

This parameter is optional. 

Review the following example:

key: service
Attribute Value 
value

Enter a value for the filter to match. 

In other words, the value you enter will determine the data that passes through the filter.

You can enter multiple, comma-separated values, such as billing,credithandler.

 

Note

Instead of value, you can also use pattern. Specifically, you can enter a regex pattern for the filter to match, such as err|ERR|ERROR.

You must enter a value or pattern.

This parameter is optional. 

Review the following example:

value: billing

Review Sample Configuration

Review the following sample configuration: 

  - name: custom_attributes_filter
    type: custom-attributes
    key: service
    value: billing
  - name: negate_custom_attributes_filter
    type: custom-attributes
    key: component
    value: credithandler,debithandler
    negate: true
  - name: regex_custom_attributes_filter
    type: custom-attributes
    key: level
    pattern: "error|ERROR|problem|ERR|Err"

 

Share this document