-
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
[Filebeat] Cisco ASA module #11171
Merged
Merged
[Filebeat] Cisco ASA module #11171
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6523ff9
[Filebeat][WIP] Cisco ASA module
adriansr b410f8c
Make update
adriansr 1c1e5d2
Generate golden files under newer elasticsearch
adriansr 7f612a5
Convert pipeline to YAML format
adriansr 9131d5c
Update golden files to ECS 1.0.0
adriansr b51374d
Fix timezone conversion
adriansr 6b4df6f
Nit
adriansr b3a95e6
Added dashboard
adriansr a63989e
Document fields
adriansr fbf57c9
Module docs
adriansr c99ee08
Cleanups to pipeline and sample logs
adriansr 7a2a00a
Adjust syslog port according to docs
adriansr 01a4d75
Better dashboard image
adriansr 24a9eae
Added CHANGELOG entry
adriansr 17765bf
Mage update
adriansr 5e3af1a
Fix wrong module name
adriansr 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 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 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 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,103 @@ | ||
//// | ||
This file is generated! See scripts/docs_collector.py | ||
//// | ||
|
||
[[filebeat-module-cisco]] | ||
[role="xpack"] | ||
|
||
:modulename: cisco | ||
:has-dashboards: true | ||
|
||
== Cisco module | ||
|
||
This is a module for Cisco network device's logs. Currently supports the `asa` | ||
fileset for Cisco ASA firewall logs received over syslog or read from a file. | ||
|
||
Cisco ASA devices also support exporting flow records using NetFlow, which is | ||
supported by the {filebeat-ref}/filebeat-module-netflow.html[netflow module] in | ||
{beatname_uc}. | ||
|
||
include::../include/what-happens.asciidoc[] | ||
|
||
[float] | ||
=== Compatibility | ||
|
||
This module requires the {plugins}/ingest-geoip.html[ingest-geoip] | ||
Elasticsearch plugin. | ||
|
||
include::../include/running-modules.asciidoc[] | ||
|
||
[float] | ||
=== Example dashboard | ||
|
||
This module comes with a sample dashboard: | ||
|
||
[role="screenshot"] | ||
image::./images/kibana-cisco-asa.png[] | ||
|
||
include::../include/configuring-intro.asciidoc[] | ||
|
||
The module is by default configured to run via syslog on port 9001. However | ||
it can also be configured to read from a file path. See the following example. | ||
|
||
["source","yaml",subs="attributes"] | ||
----- | ||
- module: cisco | ||
asa: | ||
enabled: true | ||
var.paths: ["/var/log/cisco-asa.log"] | ||
var.input: "file" | ||
----- | ||
|
||
:fileset_ex: asa | ||
|
||
include::../include/config-option-intro.asciidoc[] | ||
|
||
[float] | ||
==== `asa` fileset settings | ||
|
||
Example config: | ||
|
||
[source,yaml] | ||
---- | ||
asa: | ||
var.log_level: 5 | ||
---- | ||
|
||
include::../include/var-paths.asciidoc[] | ||
|
||
*`var.log_level`*:: | ||
|
||
An integer between 1 and 7 that allows to filter messages based on the | ||
severity level. The different severity levels supported by the Cisco ASA are: | ||
|
||
[width="30%",cols="^1,2",options="header"] | ||
|=========================== | ||
| log_level | severity | ||
| 1 | Alert | ||
| 2 | Critical | ||
| 3 | Error | ||
| 4 | Warning | ||
| 5 | Notification | ||
| 6 | Informational | ||
| 7 | Debugging | ||
|=========================== | ||
|
||
A value of 7 (default) will not filter any messages. A lower value will drop | ||
any messages with a severity level higher than the specified value. For | ||
example, `var.log_level: 3` will allow messages of level 1 (Alert), 2 (Critical) | ||
and 3 (Error). All other messages will be dropped. | ||
|
||
:has-dashboards!: | ||
|
||
:fileset_ex!: | ||
|
||
:modulename!: | ||
|
||
|
||
[float] | ||
=== Fields | ||
|
||
For a description of each field in the module, see the | ||
<<exported-fields-cisco,exported fields>> section. | ||
|
This file contains 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 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 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,6 @@ | ||
# Cisco module | ||
|
||
## Caveats | ||
|
||
* Module is to be considered _beta_. | ||
|
This file contains 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: cisco | ||
asa: | ||
enabled: true | ||
|
||
# Set which input to use between syslog (default) or file. | ||
#var.input: | ||
|
||
# Set custom paths for the log files. If left empty, | ||
# Filebeat will choose the paths depending on your OS. | ||
#var.paths: | ||
|
||
# Set the log level from 1 (alerts only) to 7 (include all messages). | ||
# Messages with a log level higher than the specified will be dropped. | ||
# See https://www.cisco.com/c/en/us/td/docs/security/asa/syslog/b_syslog/syslogs-sev-level.html | ||
#var.log_level: 7 |
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.
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.
👍