Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.7][docs] Backport: Fix netflow field docs by removing duplicate topic (#16784) #18146

Merged
merged 1 commit into from
May 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.