diff --git a/filebeat/docs/fields.asciidoc b/filebeat/docs/fields.asciidoc index 05f4677f138..34abb8e5d60 100644 --- a/filebeat/docs/fields.asciidoc +++ b/filebeat/docs/fields.asciidoc @@ -48,7 +48,6 @@ grouped in the following categories: * <> * <> * <> -* <> * <> * <> * <> @@ -26148,12 +26147,6 @@ type: short -- -[[exported-fields-netflow-module]] -== NetFlow fields - -Module for receiving NetFlow and IPFIX flow records over UDP. The module does not add fields beyond what the netflow input provides. - - [[exported-fields-nginx]] == Nginx fields diff --git a/libbeat/scripts/generate_fields_docs.py b/libbeat/scripts/generate_fields_docs.py index b52285f49e0..ecedb17d7b6 100644 --- a/libbeat/scripts/generate_fields_docs.py +++ b/libbeat/scripts/generate_fields_docs.py @@ -6,6 +6,8 @@ def document_fields(output, section, sections, path): + if "skipdocs" in section: + return if "anchor" in section: output.write("[[exported-fields-{}]]\n".format(section["anchor"])) @@ -136,7 +138,8 @@ def fields_to_asciidoc(input, output, beat): if "anchor" not in section: section["anchor"] = section["key"] - output.write("* <>\n".format(section["anchor"])) + if "skipdocs" not in section: + output.write("* <>\n".format(section["anchor"])) output.write("\n--\n") # Sort alphabetically by key diff --git a/x-pack/filebeat/module/netflow/_meta/fields.yml b/x-pack/filebeat/module/netflow/_meta/fields.yml index fc4bf3bb887..951323eb99c 100644 --- a/x-pack/filebeat/module/netflow/_meta/fields.yml +++ b/x-pack/filebeat/module/netflow/_meta/fields.yml @@ -3,4 +3,4 @@ description: > Module for receiving NetFlow and IPFIX flow records over UDP. The module does not add fields beyond what the netflow input provides. - fields: + skipdocs: diff --git a/x-pack/filebeat/module/netflow/fields.go b/x-pack/filebeat/module/netflow/fields.go index 6d6ea26f0af..93522209da6 100644 --- a/x-pack/filebeat/module/netflow/fields.go +++ b/x-pack/filebeat/module/netflow/fields.go @@ -19,5 +19,5 @@ func init() { // AssetNetflow returns asset data. // This is the base64 encoded gzipped contents of module/netflow. func AssetNetflow() string { - return "eJw8jjFOw0AQRfs9xbtAcoAtqFCkFKAUINGazBiPWHas3Ymt3B4Z4fTv/f8OfOs9UzXG4uvhx+VWNEFYFM28apyKrwlE+7XZHOY185QAXv5gRm80vaotVr92g6EK58vp/ME2vAHepOOLNt6fL0feJuVxB+LaqR4MIoymRTqfevcqrNMQxKR7JVbnWzA3X0y0HxP/Qk6/AQAA//9CcUYh" + return "eJw8zj1Ow0AQhuF+T/FeIDmACyoUKQUoBUi0xjPGoyw7q92JrdweBcnpn+/nwFXvA0Vjzr4dfl1uWROERdaBd41T9i2BaJ+a1TAvAy8J4O0fM3uj6aS2WvnZE4xFOF9O5y8exQ/gTTq+auPz9XLkY1GecyCuneLBKMJsmqXzrXcvwraMQSy6v8RKvQW1+Wqi/ZigX62KT31IfwEAAP//0cxHCg==" }