-
Notifications
You must be signed in to change notification settings - Fork 5k
[Filebeat] Add Shorewall module #12199
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
Changes from all commits
7bcdf53
5385157
a0c8545
4d22a58
98904d9
e4282d2
0359a79
1754755
41c8c0c
4fc87ec
c565d6d
fd1fd04
9b4518f
624078e
2bc9ca4
3a899dd
037c84d
e55ad2c
329ca15
ff07455
5c01192
0359d43
8e5cc48
007b0cb
e0deca0
db763af
0535c39
63dbeda
cea3267
b13e4a6
c7cb5c9
b178dcf
5f84a65
146485d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| //// | ||
| This file is generated! See scripts/docs_collector.py | ||
| //// | ||
|
|
||
| [[filebeat-module-shorewall]] | ||
| :modulename: shorewall | ||
| :has-dashboards: true | ||
|
|
||
| == shorewall module | ||
|
|
||
| This is the shorewall module. | ||
|
|
||
| include::../include/what-happens.asciidoc[] | ||
|
|
||
| [float] | ||
| === Compatibility | ||
|
|
||
| TODO: document with what versions of the software is this tested | ||
|
|
||
|
|
||
| include::../include/running-modules.asciidoc[] | ||
|
|
||
| [float] | ||
| === Example dashboard | ||
|
|
||
| This module comes with a sample dashboard. For example: | ||
|
|
||
| TODO: include an image of a sample dashboard. If you do not include a dashboard, | ||
| remove this section and set `:has-dashboards: false` at the top of this file. | ||
|
|
||
| include::../include/configuring-intro.asciidoc[] | ||
|
|
||
| TODO: provide an example configuration | ||
|
|
||
| :fileset_ex: {fileset} | ||
|
|
||
| include::../include/config-option-intro.asciidoc[] | ||
|
|
||
| TODO: document the variables from each fileset. If you're describing a variable | ||
| that's common to other modules, you can reuse shared descriptions by including | ||
| the relevant file. For example: | ||
|
|
||
| [float] | ||
| ==== `{fileset}` log fileset settings | ||
|
|
||
| include::../include/var-paths.asciidoc[] | ||
|
|
||
| :has-dashboards!: | ||
|
|
||
| :fileset_ex!: | ||
|
|
||
| :modulename!: | ||
|
|
||
|
|
||
| [float] | ||
| === Fields | ||
|
|
||
| For a description of each field in the module, see the | ||
| <<exported-fields-shorewall,exported fields>> section. | ||
|
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| - module: shorewall | ||
| # All logs | ||
| {fileset}: | ||
| enabled: true | ||
|
|
||
| # Set custom paths for the log files. If left empty, | ||
| # Filebeat will choose the paths depending on your OS. | ||
| #var.paths: |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| :modulename: shorewall | ||
| :has-dashboards: true | ||
|
|
||
| == shorewall module | ||
|
|
||
| This is the shorewall module. | ||
|
|
||
| include::../include/what-happens.asciidoc[] | ||
|
|
||
| [float] | ||
| === Compatibility | ||
|
|
||
| TODO: document with what versions of the software is this tested | ||
|
|
||
|
|
||
| include::../include/running-modules.asciidoc[] | ||
|
|
||
| [float] | ||
| === Example dashboard | ||
|
|
||
| This module comes with a sample dashboard. For example: | ||
|
|
||
| TODO: include an image of a sample dashboard. If you do not include a dashboard, | ||
| remove this section and set `:has-dashboards: false` at the top of this file. | ||
|
|
||
| include::../include/configuring-intro.asciidoc[] | ||
|
|
||
| TODO: provide an example configuration | ||
|
|
||
| :fileset_ex: {fileset} | ||
|
|
||
| include::../include/config-option-intro.asciidoc[] | ||
|
|
||
| TODO: document the variables from each fileset. If you're describing a variable | ||
| that's common to other modules, you can reuse shared descriptions by including | ||
| the relevant file. For example: | ||
|
|
||
| [float] | ||
| ==== `{fileset}` log fileset settings | ||
|
|
||
| include::../include/var-paths.asciidoc[] | ||
|
|
||
| :has-dashboards!: | ||
|
|
||
| :fileset_ex!: | ||
|
|
||
| :modulename!: | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,81 @@ | ||
| - key: shorewall | ||
| title: "shorewall" | ||
| description: > | ||
| Module for parsing Shorewall log files. | ||
| fields: | ||
| - name: shorewall | ||
| type: group | ||
| description: > | ||
| Fields from Shorewall logs. | ||
| fields: | ||
| - name: network | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @webmat Potentially useful for ECS? |
||
| type: group | ||
| description: > | ||
| Shorewal log files | ||
| fields: | ||
| - name: in | ||
| type: keywork | ||
| description: > | ||
| Name of the input network interface | ||
| - name: out | ||
| type: keyword | ||
| description: > | ||
| Name of the output network interface | ||
| - name: frame_type | ||
| type: keyword | ||
| description: > | ||
| This field is part of the MAC address in the log. It indicates whether | ||
| the ethernet frame carried an IPv4 datagram or not. | ||
| - name: packet_action | ||
| type: keywork | ||
| description: > | ||
| Specifies the action to be taken if the connection request matches | ||
| the rule. target must be one of the following values (ACCEPT, ACCEPT+, | ||
| ACCEPT!, ADD, AUDIT, A_ACCEPT, A_ACCEPT+, A_ACCEPT!, A_DROP, A_DROP!, | ||
| A_REJECT, A_REJECT!, ?COMMENT, CONMARK, CONTINUE, CONTINUE!, COUNT, DEL, | ||
| DNAT, DNAT-, DROP, DROP!, HELPER, INLINE, IPTABLES, IP6TABLES, LOG, MACRO, | ||
| MARK, NFLOG, NFQUEUE, NONAT, QUEUE, QUEUE!, REJECT, REJECT!, REDIRECT, | ||
| REDIRECT-, TARPIT, ULOG. See http://shorewall.net/manpages/shorewall-rules.html | ||
| - name: precedence | ||
| type: keyword | ||
| description: > | ||
| Type Of Service, and it's increasingly being replaced by DS and ECN. | ||
| - name: res | ||
| type: keyword | ||
| description: > | ||
| Reserved bits. The ECN flags "CWR" and "ECNE" will show up in the two | ||
| least significant bits of this field. | ||
| - name: time1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is time1 and time2?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm gonna change this, as that [x.y] is the timestamp coming from kernel |
||
| type: integer | ||
| - name: time2 | ||
| type: integer | ||
| - name: ttl | ||
| type: integer | ||
| description: > | ||
| The remaining Time To Live. | ||
| - name: urgp | ||
| type: integer | ||
| description: > | ||
| The Urgent Pointer allows for urgent, "out of band" data transfer. | ||
| Unfortunately not all protocol implementations agree, so this facility | ||
| is hardly ever used. | ||
| - name: window | ||
| type: integer | ||
| description: > | ||
| The TCP Receive Window size. This may be scaled by bit-shifting left | ||
| by a number of bits specified in the "Window Scale" TCP option. | ||
| If the host supports ECN, then the TCP Receive Window size will also | ||
| be controlled by that. | ||
| - name: zone | ||
| type: group | ||
| description: > | ||
| Shorewal Zone fields | ||
| fields: | ||
| - name: device | ||
| type: keyword | ||
| description: > | ||
| Name of the device for the zone | ||
| - name: name | ||
| type: keywork | ||
| description: > | ||
| Name of the zone | ||
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.
The TODO should be completed or removed