-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[DOCS] Add output.console to Functionbeat doc and Functionbeat reference file #18965
[DOCS] Add output.console to Functionbeat doc and Functionbeat reference file #18965
Conversation
💚 Build SucceededExpand to view the summary
Build stats
Test stats 🧪
Steps errorsExpand to view the steps failures
|
Pinging @elastic/integrations-services (Team:Services) |
@EamonnTP Merge this branch with master and push to retry the unsuccessful checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the failing tests, this LGTM. I see both the console output and codec documentation in the HTML preview.
Retry unsuccessful checks
Here's the error from
@dedemorton do you know what's wrong? |
Aha. So I should have caught this during the review, but it's been awhile since I've updated the config reference, and I'd forgotten that they're now using templating to create the reference files. So instead of manually updating the functionbeat.reference.yml, you need to make a code change. Remove this line: https://github.com/elastic/beats/blob/master/x-pack/functionbeat/scripts/mage/config.go#L16 Then run |
(or I guess you could set it to |
One thing we might want to add (open for discussion) is a warning about |
I'd be in favor of adding a warning. |
@@ -7,6 +7,8 @@ | |||
|
|||
The Console output writes events in JSON format to stdout. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One can configure a custom formatter to print messages with a custom layout. JSON is just the default formatter (see codec setting).
…nce file (elastic#18965) * Add outputconsole to Functionbeat doc * Remove no_codec attirbute * Updates following review # Conflicts: # libbeat/outputs/console/docs/console.asciidoc
…nce file (elastic#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
…nce file (elastic#18965) * Add outputconsole to Functionbeat doc * Remove no_codec attirbute * Updates following review # Conflicts: # libbeat/outputs/console/docs/console.asciidoc
…nce file (elastic#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
…ngs-archive * upstream/master: (119 commits) Update filebeat input docs (elastic#19110) Add ECS fields from log pipeline of PostgreSQL (elastic#19127) Init package libbeat/statestore (elastic#19117) [Ingest Manager] Retryable downloads of beats (elastic#19102) [DOCS] Add output.console to Functionbeat doc and Functionbeat reference file (elastic#18965) Add compatibility info (elastic#18929) Set ecszap version to v0.2.0 (elastic#19106) [filebeat][httpjson] Fix unit test function call (elastic#19124) [Filebeat][httpjson] Adds oauth2 support for httpjson input (elastic#18892) Allow host.* fields to be disabled in Suricata module (elastic#19107) Make selector string casing configurable (elastic#18854) Switch the GRPC communication where Agent is running the server and the beats are connecting back to Agent (elastic#18973) Disable host.* fields by default for netflow module (elastic#19087) Automatically fill zube teams on backports if available (elastic#18924) Fix crash on vsphere module (elastic#19078) [Ingest Manager] Download snapshot artifacts from snapshots repo (elastic#18685) [Ingest Manager] Basic Elastic Agent documentation (elastic#19030) Make user.id a string in system/users, in line with ECS (elastic#19019) [docs] Add 7.8 release highlights placeholder file (elastic#18493) Fix translate_sid's empty target field handling (elastic#18991) ...
…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>
…nce file (elastic#18965) * Add outputconsole to Functionbeat doc * Remove no_codec attirbute * Updates following review
…reference file (elastic#18965) (elastic#19147) * [DOCS] Add output.console to Functionbeat doc and Functionbeat reference file (elastic#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>
What does this PR do?
This PR adds the
output.console
content to the Functionbeat doc and to thefunctionbeat.reference.yml
file.Why is it important?
output.console
was added in 7.6.0 to help users debug, but it was not documented. While this new output mode is intended for troubleshooting/debugging only, it can still benefit developers/admins. Thefunctionbeat.reference.yml
file is also updated so developers know that the console output configuration exists.Related issues
Closes #16855
HTML output
Coming soon. Doc build is currently failing and requires further investigation.