Skip to content

Latest commit

 

History

History
36 lines (27 loc) · 995 Bytes

Add.md

File metadata and controls

36 lines (27 loc) · 995 Bytes

Filters - Add

Adding new tag to the log event.

Configuration example:

<ElasticFilters>
    <Add>
        <Key>TagName</Key>
        <Value>TagValue</Value>
        
        <!-- optional -->
        <Overwrite>True</Overwrite>
    </Add>
</ElasticFilters>

Properties:

Key

The name of the tag.
You can use smart formatting here.

Value

The value.
You can use smart formatting here.

Overwrite

Whether to overite or append if this tag already exists.

For example if you have tag with the name Address and value first and you are using the Add filter to add Address with value of second.
If Overwrite is true - The original address will be replaced with second.
If Overwrite is false - The tag Address will be replace by array with the values ['first', 'second'].