Skip to content

Commit

Permalink
[docs] Modify doc gen script to remove unwanted fields
Browse files Browse the repository at this point in the history
  • Loading branch information
dedemorton committed Apr 28, 2020
1 parent eb2dc26 commit 471e395
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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 "nofields" 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 "nofields" 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:
nofields:

0 comments on commit 471e395

Please sign in to comment.