-
Notifications
You must be signed in to change notification settings - Fork 5k
[Filebeat] Add ZooKeeper Module #25128
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
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
3e69b5a
#25061: Add ZooKeeper Module
legoguy1000 e112e7f
Add zookeeper.log fileset
legoguy1000 3e7e46e
update zookeeper module based on comments.
legoguy1000 d26267f
update thread name
legoguy1000 afaf64a
add audit logs with dates
legoguy1000 bbe6b15
changes from @jsoriano comments
legoguy1000 afc0ce7
remove use split
legoguy1000 e309f8e
add user field
legoguy1000 00de4e9
update generated data
legoguy1000 1b1807f
fix the CI errors
legoguy1000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,93 @@ | ||
| //// | ||
| This file is generated! See scripts/docs_collector.py | ||
| //// | ||
|
|
||
| [[filebeat-module-zookeeper]] | ||
| :modulename: zookeeper | ||
| :has-dashboards: false | ||
|
|
||
| == ZooKeeper module | ||
|
|
||
| The +{modulename}+ module collects and parses the logs created by https://zookeeper.apache.org/[Apache ZooKeeper] | ||
|
|
||
| include::../include/what-happens.asciidoc[] | ||
|
|
||
| include::../include/gs-link.asciidoc[] | ||
|
|
||
| [float] | ||
| === Compatibility | ||
|
|
||
| The +{modulename}+ module was tested with logs from versions 3.7.0. | ||
|
|
||
| include::../include/configuring-intro.asciidoc[] | ||
|
|
||
| The following example shows how to set paths in the +modules.d/{modulename}.yml+ | ||
| file to override the default paths for logs: | ||
|
|
||
| [source,yaml] | ||
| ----- | ||
| - module: zookeeper | ||
| audit: | ||
| enabled: true | ||
| var.paths: | ||
| - "/path/to/logs/zookeeper_audit.log*" | ||
| log: | ||
| enabled: true | ||
| var.paths: | ||
| - "/path/to/logs/zookeeper.log*" | ||
| ----- | ||
|
|
||
|
|
||
| To specify the same settings at the command line, you use: | ||
|
|
||
| [source,yaml] | ||
| ----- | ||
| -M "zookeeper.audit.var.paths=[/path/to/logs/zookeeper_audit.log*]" -M "zookeeper.log.var.paths=[/path/to/logs/zookeeper.log*]" | ||
| ----- | ||
|
|
||
| [float] | ||
| === Audit logging | ||
|
|
||
| Audit logging is available since Zookeeper 3.6.0, but it is disabled by default. To enable it, you can add the following setting to the configuration file: | ||
| ["source","sh"] | ||
| ---------------------- | ||
| audit.enable=true | ||
| ---------------------- | ||
|
|
||
| //set the fileset name used in the included example | ||
| :fileset_ex: audit | ||
|
|
||
| include::../include/config-option-intro.asciidoc[] | ||
|
|
||
| [float] | ||
| ==== `audit` fileset settings | ||
|
|
||
| include::../include/var-paths.asciidoc[] | ||
|
|
||
| include::../include/timezone-support.asciidoc[] | ||
|
|
||
| :fileset_ex!: | ||
|
|
||
| //set the fileset name used in the included example | ||
| :fileset_ex: log | ||
|
|
||
| include::../include/config-option-intro.asciidoc[] | ||
|
|
||
| [float] | ||
| ==== `log` fileset settings | ||
|
|
||
| include::../include/var-paths.asciidoc[] | ||
|
|
||
| include::../include/timezone-support.asciidoc[] | ||
|
|
||
| :fileset_ex!: | ||
|
|
||
| :modulename!: | ||
|
|
||
|
|
||
| [float] | ||
| === Fields | ||
|
|
||
| For a description of each field in the module, see the | ||
| <<exported-fields-zookeeper,exported fields>> section. | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| - module: zookeeper | ||
| # All logs | ||
| audit: | ||
| enabled: true | ||
|
|
||
| # Set custom paths for the log files. If left empty, | ||
| # Filebeat will choose the paths depending on your OS. | ||
| #var.paths: | ||
| # All logs | ||
| log: | ||
| enabled: true | ||
|
|
||
| # Set custom paths for the log files. If left empty, | ||
| # Filebeat will choose the paths depending on your OS. | ||
| #var.paths: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,80 @@ | ||
| :modulename: zookeeper | ||
| :has-dashboards: false | ||
|
|
||
| == ZooKeeper module | ||
|
|
||
| The +{modulename}+ module collects and parses the logs created by https://zookeeper.apache.org/[Apache ZooKeeper] | ||
|
|
||
| include::../include/what-happens.asciidoc[] | ||
|
|
||
| include::../include/gs-link.asciidoc[] | ||
|
|
||
| [float] | ||
| === Compatibility | ||
|
|
||
| The +{modulename}+ module was tested with logs from versions 3.7.0. | ||
|
|
||
| include::../include/configuring-intro.asciidoc[] | ||
|
|
||
| The following example shows how to set paths in the +modules.d/{modulename}.yml+ | ||
| file to override the default paths for logs: | ||
|
|
||
| [source,yaml] | ||
| ----- | ||
| - module: zookeeper | ||
| audit: | ||
| enabled: true | ||
| var.paths: | ||
| - "/path/to/logs/zookeeper_audit.log*" | ||
| log: | ||
| enabled: true | ||
| var.paths: | ||
| - "/path/to/logs/zookeeper.log*" | ||
| ----- | ||
|
|
||
|
|
||
| To specify the same settings at the command line, you use: | ||
|
|
||
| [source,yaml] | ||
| ----- | ||
| -M "zookeeper.audit.var.paths=[/path/to/logs/zookeeper_audit.log*]" -M "zookeeper.log.var.paths=[/path/to/logs/zookeeper.log*]" | ||
| ----- | ||
|
|
||
legoguy1000 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| [float] | ||
| === Audit logging | ||
|
|
||
| Audit logging is available since Zookeeper 3.6.0, but it is disabled by default. To enable it, you can add the following setting to the configuration file: | ||
| ["source","sh"] | ||
| ---------------------- | ||
| audit.enable=true | ||
| ---------------------- | ||
|
|
||
| //set the fileset name used in the included example | ||
| :fileset_ex: audit | ||
|
|
||
| include::../include/config-option-intro.asciidoc[] | ||
|
|
||
| [float] | ||
| ==== `audit` fileset settings | ||
|
|
||
| include::../include/var-paths.asciidoc[] | ||
|
|
||
| include::../include/timezone-support.asciidoc[] | ||
|
|
||
| :fileset_ex!: | ||
|
|
||
| //set the fileset name used in the included example | ||
| :fileset_ex: log | ||
|
|
||
| include::../include/config-option-intro.asciidoc[] | ||
|
|
||
| [float] | ||
| ==== `log` fileset settings | ||
|
|
||
| include::../include/var-paths.asciidoc[] | ||
|
|
||
| include::../include/timezone-support.asciidoc[] | ||
|
|
||
| :fileset_ex!: | ||
|
|
||
| :modulename!: | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| - key: zookeeper | ||
| title: "ZooKeeper" | ||
legoguy1000 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| release: beta | ||
| description: > | ||
| ZooKeeper Module | ||
| fields: | ||
| - name: zookeeper | ||
| type: group | ||
| description: > | ||
| fields: | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| - name: audit | ||
| type: group | ||
| description: > | ||
| ZooKeeper Audit logs. | ||
legoguy1000 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| release: beta | ||
| fields: | ||
| - name: session | ||
| type: keyword | ||
| description: > | ||
| Client session id | ||
| - name: znode | ||
| type: keyword | ||
| description: > | ||
| Path of the znode | ||
| - name: znode_type | ||
| type: keyword | ||
| description: > | ||
| Type of znode in case of creation operation | ||
| - name: acl | ||
| type: keyword | ||
| description: > | ||
| String representation of znode ACL like cdrwa(create, delete,read, write, admin). This is logged only for setAcl operation | ||
| - name: result | ||
| type: keyword | ||
| description: > | ||
| Result of the operation. Possible values are (success/failure/invoked). Result "invoked" is used for serverStop operation because stop is logged before ensuring that server actually stopped. | ||
| - name: user | ||
| type: keyword | ||
| description: > | ||
| Comma separated list of users who are associate with a client session | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.