-
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.
Current vendor product by source config uses two files that must be kept in sync this solution allows using one or more files (customer choice) to define mapping.
- Loading branch information
rfaircloth-splunk
committed
Feb 6, 2022
1 parent
2b20414
commit e792c77
Showing
49 changed files
with
484 additions
and
209 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
9 changes: 0 additions & 9 deletions
9
package/etc/conf.d/conflib/_common/p_vendor_product_by_source.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
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
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
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
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
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
File renamed without changes.
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,27 @@ | ||
parser vendor_product_by_source { | ||
channel { | ||
if { | ||
parser { | ||
app-parser(topic(sc4s-vps)); | ||
}; | ||
} elif { | ||
parser { | ||
add-contextual-data( | ||
selector(filters("`syslog-ng-sysconfdir`/conf.d/local/context/vendor_product_by_source.conf")), | ||
database("`syslog-ng-sysconfdir`/conf.d/local/context/vendor_product_by_source.csv") | ||
ignore-case(yes) | ||
prefix(".netsource.") | ||
); | ||
}; | ||
if { | ||
filter { | ||
"${.netsource.sc4s_vendor_product}" eq "" | ||
}; | ||
rewrite{ | ||
set('${.netsource.sc4s_vendor}_${.netsource.sc4s_product}' value('.netsource.sc4s_vendor_product}')); | ||
}; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
95 changes: 0 additions & 95 deletions
95
package/etc/context_templates/vendor_product_by_source.conf.example
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,99 +1,4 @@ | ||
filter f_test_test { | ||
host("testvp-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_aruba_clearpass { | ||
host("aruba-cp-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
|
||
filter f_brocade_syslog { | ||
host("test_brocade-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
|
||
filter f_citrix_netscaler { | ||
host("test_ctitrixns-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_dell_rsa_secureid { | ||
host("test_rsasecureid*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_juniper_netscreen { | ||
host("jnpns-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_cisco_meraki { | ||
host("testcm-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_cisco_wsa{ | ||
host("cisco-wsa-*" type(glob)) | ||
}; | ||
filter f_cisco_wsa_w3crecommended{ | ||
host("cisco-wsaw3c-*" type(glob)) | ||
}; | ||
filter f_cisco_wsa11_7{ | ||
host("cisco-wsa11-7" type(string) flags(prefix)) | ||
or host("cisco_wsa11_7" type(string) flags(prefix)) | ||
}; | ||
filter f_f5_bigip { | ||
host("test-f5-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_infoblox { | ||
host("infoblox-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_pfsense { | ||
host("pfsense-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_proofpoint_pps { | ||
host("pps-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_schneider_apc { | ||
host("test_apc-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_ubiquiti_unifi_fw { | ||
host("usg-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_tzfixny { | ||
host("tzfny-*" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_cisco_esa { | ||
host("cisco_esa" type(glob)) | ||
#or netmask(xxx.xxx.xxx.xxx/xx) | ||
}; | ||
filter f_spectracom_ntp { | ||
#Source uses invalid format can not use host must use IP or port | ||
netmask(169.254.100.1/24) | ||
}; | ||
filter f_sophos_webappliance { | ||
host("test-sophos-webapp-" type(string) flags(prefix)) | ||
}; | ||
|
||
filter f_vmware_esx { | ||
host("testvmwe-" type(string) flags(prefix)) | ||
}; | ||
|
||
filter f_dell_cmc { | ||
host("test-dell-cmc-" type(string) flags(prefix)) | ||
}; | ||
|
||
filter f_ibm_datapower { | ||
host("test-ibmdp-" type(string) flags(prefix)) | ||
}; | ||
|
||
filter f_mikrotik_routeros { | ||
host("test-mrtros-" type(string) flags(prefix)) | ||
}; | ||
|
||
filter f_symantec_dlp { | ||
host("test-dlp-" type(string) flags(prefix)) | ||
}; |
23 changes: 0 additions & 23 deletions
23
package/etc/context_templates/vendor_product_by_source.csv.example
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,24 +1 @@ | ||
f_aruba_clearpass,sc4s_vendor_product,"aruba_clearpass" | ||
f_test_test,sc4s_vendor_product,"test_test" | ||
f_brocade_syslog,sc4s_vendor_product,"brocade_syslog" | ||
f_cisco_meraki,sc4s_vendor_product,"cisco_meraki" | ||
f_cisco_wsa,sc4s_vendor_product,"cisco_wsa" | ||
f_cisco_wsa11_7,sc4s_vendor_product,"cisco_wsa11_7" | ||
f_cisco_wsa_w3crecommended,sc4s_vendor_product,"cisco_wsa_recommended" | ||
f_dell_rsa_secureid,sc4s_vendor_product,"dell_rsa_secureid" | ||
f_f5_bigip,sc4s_vendor_product,"f5_bigip" | ||
f_infoblox,sc4s_vendor_product,"infoblox" | ||
f_pfsense,sc4s_vendor_product,"pfsense" | ||
f_proofpoint_pps,sc4s_vendor_product,"proofpoint_pps" | ||
f_schneider_apc,sc4s_vendor_product,"schneider_apc" | ||
f_spectracom_ntp,sc4s_vendor_productm",spectracom_ntp" | ||
f_ubiquiti_unifi_fw,sc4s_vendor_product,"ubiquiti_unifi_fw" | ||
f_tzfixny,sc4s_time_zone,"America/New_York" | ||
f_cisco_esa,sc4s_vendor_product,"cisco_esa" | ||
f_sophos_webappliance,sc4s_vendor_product,"sophos_webappliance" | ||
f_vmware_esx,sc4s_vendor,"vmware" | ||
f_vmware_esx,sc4s_product,"vcenter" | ||
f_dell_cmc,sc4s_vendor_product,"dell_poweredge_cmc" | ||
f_ibm_datapower,sc4s_vendor_product,"ibm_datapower" | ||
f_mikrotik_routeros,sc4s_vendor_product,"mikrotik_routeros" | ||
f_symantec_dlp,sc4s_vendor_product,"symantec_dlp" |
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.