-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix Cisco Meraki filters (#2369) fix: update Bluecoat sourcetype to match TA 3.8.1 (#2370) feat: create parser for Aviatrix (#2377) fix: extend ZScaler LSS (#2388) fix: fix app-almost-syslog-cisco_syslog (#2399)
- Loading branch information
Showing
26 changed files
with
685 additions
and
301 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Aviatrix | ||
|
||
## Key facts | ||
* MSG Format based filter | ||
* Legacy BSD Format default port 514 | ||
|
||
## Product - Switches | ||
|
||
| Ref | Link | | ||
|----------------|---------------------------------------------------------------------------------------------------------| | ||
| Splunk Add-on | -- | | ||
| Product Manual | [Link](https://docs.aviatrix.com/documentation/latest/controller-platform-administration/aviatrix-logging.html?expand=true#log-management-system-formats) | | ||
|
||
## Sourcetypes | ||
|
||
| sourcetype | notes | | ||
|----------------|---------------------------------------------------------------------------------------------------------| | ||
| aviatrix:cloudx-cli | None | | ||
| aviatrix:kernel | None | | ||
| aviatrix:cloudxd | None | | ||
| aviatrix:avx-nfq | None | | ||
| aviatrix:avx-gw-state-sync | None | | ||
| aviatrix:perfmon | None | | ||
|
||
## Sourcetype and Index Configuration | ||
|
||
| key | sourcetype | index | notes | | ||
|----------------|----------------|----------------|----------------| | ||
| aviatrix_cloudx-cli | aviatrix:cloudx-cli | netops | none | | ||
| aviatrix_kernel | aviatrix:kernel | netops | none | | ||
| aviatrix_cloudxd | aviatrix:cloudxd | netops | none | | ||
| aviatrix_avx-nfq | aviatrix:avx-nfq | netops | none | | ||
| aviatrix_avx-gw-state-sync | aviatrix:avx-gw-state-sync | netops | none | | ||
| aviatrix_perfmon | aviatrix:perfmon | netops | none | |
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 |
---|---|---|
@@ -1,65 +1,96 @@ | ||
## Meraki (MR, MS, MX) | ||
|
||
## Key facts | ||
* In most cases, Cisco Meraki logs are general and require vendor product by source configuration. | ||
* For distinctive log messages, filters are based on the appliance name and program value. | ||
* Cisco Meraki messages are not distinctive, which means that it's impossible to parse the sourcetype based on the log message. | ||
* Because of the above you should either configure known Cisco Meraki hosts in SC4S, or open unique ports for Cisco Meraki devices. | ||
* [Splunk Add-on for Cisco Meraki 2.1.0](https://splunkbase.splunk.com/app/5580) doesn't support syslog. Use [TA-meraki](https://splunkbase.splunk.com/app/3018) instead. `TA-meraki 1.1.5` requires sourcetype `meraki`. | ||
|
||
## Distinctive log messages | ||
See samples in the [vendor documentation](https://documentation.meraki.com/General_Administration/Monitoring_and_Reporting/Syslog_Event_Types_and_Log_Samples). | ||
|
||
The two conjuncted conditions are required: | ||
|
||
1. Program: `(events|urls|firewall|cellular_firewall|vpn_firewall|ids-alerts|flows)` | ||
|
||
2. Appliance name: | ||
|
||
| Sourcetype | Distinct element | | ||
| --------- | -------------- | | ||
| meraki:accesspoints | `host('MR' type(string) flags(ignore-case,prefix))` | | ||
| meraki:securityappliances | `host('MX' type(string) flags(ignore-case,prefix))` | | ||
| meraki:switches | `host('MS' type(string) flags(ignore-case,prefix))` | | ||
|
||
|
||
## Links | ||
|
||
| Ref | Link | | ||
|----------------|---------------------------------------------------------------------------------------------------------| | ||
| Splunk Add-on | <https://splunkbase.splunk.com/app/5580> | | ||
| Product Manual | <https://documentation.meraki.com/zGeneral_Administration/Monitoring_and_Reporting/Syslog_Server_Overview_and_Configuration> <https://documentation.meraki.com/General_Administration/Monitoring_and_Reporting/Syslog_Event_Types_and_Log_Samples> | | ||
| Splunk Add-on | <https://splunkbase.splunk.com/app/3018> | | ||
| Product Manual | <https://documentation.meraki.com/zGeneral_Administration/Monitoring_and_Reporting/Syslog_Server_Overview_and_Configuration> | | ||
|
||
## Sourcetypes | ||
|
||
| sourcetype | notes | | ||
|----------------|---------------------------------------------------------------------------------------------------------| | ||
| meraki:accesspoints | MR | | ||
| meraki:securityappliances | MX | | ||
| meraki:switches | MS | | ||
| meraki | vendor product by source configuration | | ||
| meraki:accesspoints | Not compliant with the Splunk Add-on | | ||
| meraki:securityappliances | Not compliant with the Splunk Add-on | | ||
| meraki:switches | Not compliant with the Splunk Add-on | | ||
| meraki | For all Meraki devices. Compliant with the Splunk Add-on | | ||
|
||
## Sourcetype and Index Configuration | ||
## Index Configuration | ||
|
||
| key | sourcetype | index | notes | | ||
|----------------|----------------|----------------|----------------| | ||
| cisco_meraki_accesspoints | meraki:accesspoints | netfw | Filtered on the message format | | ||
| cisco_meraki_securityappliances | meraki:securityappliances | netfw | Filtered on the message format | | ||
| cisco_meraki_switches | meraki:switches | netfw | Filtered on the message format | | ||
| cisco_meraki | meraki | netfw | Filtered on vendor product by source configuration | | ||
| meraki_accesspoints | meraki:accesspoints | netfw | | | ||
| meraki_securityappliances | meraki:securityappliances | netfw | | | ||
| meraki_switches | meraki:switches | netfw | | | ||
| cisco_meraki | meraki | netfw | | | ||
|
||
## Parser Configuration | ||
|
||
## Parser Configuration | ||
1. Either by defining Cisco Meraki hosts: | ||
```c | ||
#/opt/sc4s/local/config/app-parsers/app-vps-cisco_meraki.conf | ||
#/opt/sc4s/local/config/app_parsers/app-vps-cisco_meraki.conf | ||
#File name provided is a suggestion it must be globally unique | ||
|
||
application app-vps-test-cisco_meraki[sc4s-vps] { | ||
filter { | ||
host("^testcm-") | ||
block parser app-vps-test-cisco_meraki() { | ||
channel { | ||
if { | ||
filter { host("^test-mx-") }; | ||
parser { | ||
p_set_netsource_fields( | ||
vendor('meraki') | ||
product('securityappliances') | ||
); | ||
}; | ||
} elif { | ||
filter { host("^test-mr-") }; | ||
parser { | ||
p_set_netsource_fields( | ||
vendor('meraki') | ||
product('accesspoints') | ||
); | ||
}; | ||
} elif { | ||
filter { host("^test-ms-") }; | ||
parser { | ||
p_set_netsource_fields( | ||
vendor('meraki') | ||
product('switches') | ||
); | ||
}; | ||
} else { | ||
parser { | ||
p_set_netsource_fields( | ||
vendor('cisco') | ||
product('meraki') | ||
); | ||
}; | ||
}; | ||
}; | ||
parser { | ||
p_set_netsource_fields( | ||
vendor('cisco') | ||
product('meraki') | ||
); | ||
}; | ||
}; | ||
|
||
|
||
application app-vps-test-cisco_meraki[sc4s-vps] { | ||
filter { | ||
host("^test-meraki-") | ||
or host("^test-mx-") | ||
or host("^test-mr-") | ||
or host("^test-ms-") | ||
}; | ||
parser { app-vps-test-cisco_meraki(); }; | ||
}; | ||
``` | ||
|
||
2. Or by a unique port: | ||
``` | ||
# /opt/sc4s/env_file | ||
SC4S_LISTEN_CISCO_MERAKI_UDP_PORT=5004 | ||
SC4S_LISTEN_MERAKI_SECURITYAPPLIANCES_UDP_PORT=5005 | ||
SC4S_LISTEN_MERAKI_ACCESSPOINTS_UDP_PORT=5006 | ||
SC4S_LISTEN_MERAKI_SWITCHES_UDP_PORT=5007 | ||
``` |
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
28 changes: 0 additions & 28 deletions
28
package/etc/conf.d/conflib/almost-syslog/app-almost-syslog-cisco_meraki.conf
This file was deleted.
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
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
Oops, something went wrong.