Sha256: c0bc29efa0790c7b6b188d4bfc0c28689688ad4110db52ed3dbb7048df558f57

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

This logstash filter tags events according to a list of CIDR to tag mappings, and optionally maps ASN numbers to names


Example:

```
cidrtagmap {
        mapfilepath => "/path/to/ipmap/file"
        asnmapfilepath => "/path/to/asnmap/file"
        ipfieldlist => [
		'host',
		'[netflow][dst_address]',
		'[etc]'
	]
        asfieldlist => [
		'[netflow][dst_as]',
		'[netflow][src_as]
	]
}
```

* mapfilepath (required) points to 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
ipmap file without interrupting/restarting the logstash instance by touching a flag file.

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


* asnmapfilepath (optional) points to a copy of this file: ftp://ftp.arin.net/info/asn.txt 


* ipfieldlist (required) is a list of event fields that will be eligible for mapping.  Everything that matches
will be put in a structure subtending an item called cidrtagmap, so
from the above example a match of the [netflow][dst_address] field would add
cidrtagmap.netflow.dst_address.tag.  A pair to this field will be cidrtagmap.netflow.dst_address.match 
which indicates which rule was matched for the mapping.

* asnfieldlist (optional) is a list of fields presumed to contain asn numbers.  Everything that matches
will add e.g. cidrtagmap.netflow.dst_as.asname



Version data entries

1 entries across 1 versions & 1 rubygems

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