Skip to content

Commit

Permalink
[7.7] [DOCS] Add output.console to Functionbeat doc and Functionbeat …
Browse files Browse the repository at this point in the history
…reference file (#18965) (#19147)

* [DOCS] Add output.console to Functionbeat doc and Functionbeat reference file (#18965)

* Add outputconsole to Functionbeat doc

* Remove no_codec attirbute

* Updates following review
# Conflicts:
#	libbeat/outputs/console/docs/console.asciidoc
#	x-pack/functionbeat/functionbeat.reference.yml
#	x-pack/functionbeat/scripts/mage/config.go

* Update x-pack/functionbeat/scripts/mage/config.go

Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>

* Add output console to ref file

Co-authored-by: Brandon Morelli <bmorelli25@gmail.com>
  • Loading branch information
EamonnTP and bmorelli25 committed Jun 16, 2020
1 parent aa0d320 commit 29fa614
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
7 changes: 7 additions & 0 deletions libbeat/outputs/console/docs/console.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@

The Console output writes events in JSON format to stdout.

WARNING: The Console output should be used only for debugging issues as it can produce a large amount of logging data.

To use this output, edit the {beatname_uc} configuration file to disable the {es}
output by commenting it out, and enable the console output by adding `output.console`.

Example configuration:

[source,yaml]
------------------------------------------------------------------------------
output.console:
Expand Down
2 changes: 0 additions & 2 deletions x-pack/functionbeat/docs/index.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ include::{asciidoc-dir}/../../shared/attributes.asciidoc[]
:no_kafka_output:
:no_redis_output:
:no_file_output:
:no_console_output:
:no_codec:
:requires_xpack:
:serverless:
:mac_os:
Expand Down
13 changes: 13 additions & 0 deletions x-pack/functionbeat/functionbeat.reference.yml
Original file line number Diff line number Diff line change
Expand Up @@ -896,6 +896,19 @@ output.elasticsearch:
# timing out. The default is 30s.
#timeout: 30s

#----------------------------- Console output ---------------------------------
#output.console:
# Boolean flag to enable or disable the output module.
#enabled: true

# Configure JSON encoding
#codec.json:
# Pretty-print JSON event
#pretty: false

# Configure escaping HTML symbols in strings.
#escape_html: false

#================================= Paths ======================================

# The home path for the Functionbeat installation. This is the default base path
Expand Down
2 changes: 1 addition & 1 deletion x-pack/functionbeat/scripts/mage/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func XPackConfigFileParams() devtools.ConfigFileParams {
devtools.LibbeatDir("_meta/config.reference.yml.tmpl"),
},
ExtraVars: map[string]interface{}{
"ExcludeConsole": true,
"ExcludeConsole": false,
"ExcludeFileOutput": true,
"ExcludeKafka": true,
"ExcludeRedis": true,
Expand Down

0 comments on commit 29fa614

Please sign in to comment.