Skip to content

Commit

Permalink
[docs] Fix netflow field docs by removing duplicate topic (elastic#16784
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dedemorton committed Apr 30, 2020
1 parent 92dea14 commit 3d2dc29
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 @@ -46,7 +46,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 @@ -21602,12 +21601,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 3d2dc29

Please sign in to comment.