Sha256: 0aba6c6c0f44cd38b77df1ae15deadd18aa2cd71639cd643343f9707860c1cf2

Contents?: true

Size: 832 Bytes

Versions: 1

Compression:

Stored size: 832 Bytes

Contents

This logstash filter tags netflow records according to a list of CIDR to tag mappings.

The list is an external / stand alone text file consisting of lines of the form:

```
<network>/<mask>,<tag>
```

The filter can be made to re-load its in-memory representation of the contents of the
map file without interrupting/restarting the logstash instance by touching a flag file.

When a netflow event matches the CIDR spec, two tags are set:

src_tag = the tag associated with the spec that matched

src_tagMatch = the CIDR spec that matched (as rendered by IPAddr.to_s)


Configuration:

```
filter{
        cidrtagmap {
                mapfilepath => "cidrmap.txt"
        }
}
```

Tell the filter to reload its map

```
touch <mapfilepath>.RELOAD
```

Reloading is thread safe.

Put cidrtagmap.rb in $LOGSTASH/lib/logstash/filters/

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
logstash-filter-cidrtagmap-1.1.0 README.md