Skip to content

Commit

Permalink
[docs] Fix netflow field docs by removing duplicate topic (#16784)
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemorton authored Apr 30, 2020
1 parent bc8123a commit 30311f6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
7 changes: 0 additions & 7 deletions filebeat/docs/fields.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ grouped in the following categories:
* <<exported-fields-mysql>>
* <<exported-fields-nats>>
* <<exported-fields-netflow>>
* <<exported-fields-netflow-module>>
* <<exported-fields-nginx>>
* <<exported-fields-o365>>
* <<exported-fields-okta>>
Expand Down Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion libbeat/scripts/generate_fields_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]))

Expand Down Expand Up @@ -136,7 +138,8 @@ def fields_to_asciidoc(input, output, beat):
if "anchor" not in section:
section["anchor"] = section["key"]

output.write("* <<exported-fields-{}>>\n".format(section["anchor"]))
if "skipdocs" not in section:
output.write("* <<exported-fields-{}>>\n".format(section["anchor"]))
output.write("\n--\n")

# Sort alphabetically by key
Expand Down
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/netflow/_meta/fields.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
2 changes: 1 addition & 1 deletion x-pack/filebeat/module/netflow/fields.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 30311f6

Please sign in to comment.