Sha256: d1138ff156eafbd6349fb3459d5666792d323529665a53d1b2094b8aaf7870b4

Contents?: true

Size: 928 Bytes

Versions: 1

Compression:

Stored size: 928 Bytes

Contents

This logstash filter tags netflow records according to a list of CIDR to tag mappings, and adds ASN names for the src_as and dst_as fields.

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)

Download the asn map file here: ftp://ftp.arin.net/info/asn.txt 


Configuration:

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

Tell the filter to reload its maps

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

Reloading is thread safe.

Version data entries

1 entries across 1 versions & 1 rubygems

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