Skip to content

Commit

Permalink
updates asciidoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurent Dormoy committed Oct 2, 2019
1 parent 2f90ce7 commit 5fb56df
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ This plugin supports the following configuration options plus the <<plugins-{typ
| <<plugins-{type}s-{plugin}-concatenate_sources>> |<<boolean,boolean>>|No
| <<plugins-{type}s-{plugin}-concatenate_all_fields>> |<<boolean,boolean>>|No
| <<plugins-{type}s-{plugin}-key>> |<<string,string>>|No
| <<plugins-{type}s-{plugin}-method>> |<<string,string>>, one of `["SHA1", "SHA256", "SHA384", "SHA512", "MD5", "MURMUR3", "IPV4_NETWORK", "UUID", "PUNCTUATION"]`|Yes
| <<plugins-{type}s-{plugin}-method>> |<<string,string>>, one of `["SHA1", "SHA256", "SHA384", "SHA512", "MD5", "MURMUR3", "IPV4_NETWORK", "IPV6_NETWORK", "UUID", "PUNCTUATION"]`|Yes
| <<plugins-{type}s-{plugin}-source>> |<<array,array>>|No
| <<plugins-{type}s-{plugin}-target>> |<<string,string>>|No
|=======================================================================
Expand Down Expand Up @@ -95,14 +95,14 @@ source fields given.
* Value type is <<string,string>>
* There is no default value for this setting.

When used with the `IPV4_NETWORK` method fill in the subnet prefix length.
When used with the `IPV4_NETWORK` or `IPV6_NETWORK` method fill in the subnet prefix length.
With other methods, optionally fill in the HMAC key.

[id="plugins-{type}s-{plugin}-method"]
===== `method`

* This is a required setting.
* Value can be any of: `SHA1`, `SHA256`, `SHA384`, `SHA512`, `MD5`, `MURMUR3`, `IPV4_NETWORK`, `UUID`, `PUNCTUATION`
* Value can be any of: `SHA1`, `SHA256`, `SHA384`, `SHA512`, `MD5`, `MURMUR3`, `IPV4_NETWORK`, `IPV6_NETWORK`, `UUID`, `PUNCTUATION`
* Default value is `"SHA1"`

The fingerprint method to use.
Expand All @@ -119,6 +119,11 @@ the hash value will be the masked-out address using the number of bits
specified in the `key` option. For example, with "1.2.3.4" as the input
and `key` set to 16, the hash becomes "1.2.0.0".

If set to `IPV6_NETWORK` the input data needs to be a IPv6 address and
the hash value will be the masked-out address using the number of bits
specified in the `key` option. For example, with "2001:db8:85a3::8a2e:370:7334" as the input
and `key` set to 112, the hash becomes "2001:db8:85a3::8a2e:370:0".

If set to `PUNCTUATION`, all non-punctuation characters will be removed
from the input string.

Expand Down

0 comments on commit 5fb56df

Please sign in to comment.