-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add Aruba Silver Peak parser (#2537)
- Loading branch information
1 parent
ed5ece0
commit 8a4712b
Showing
13 changed files
with
218 additions
and
33 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Silverpeak | ||
|
||
## Key facts | ||
|
||
* Requires vendor product by source configuration | ||
* Legacy BSD Format default port 514 | ||
|
||
## Links | ||
|
||
| Ref | Link | | ||
|----------------|---------------------------------------------------------------------------------------------------------| | ||
|
||
## Sourcetypes | ||
|
||
| sourcetype | notes | | ||
|------------------|-------| | ||
| aruba:silverpeak | | | ||
|
||
|
||
### Index Configuration | ||
|
||
| key | index | notes | | ||
|------------------------------------------|--------|----------------| | ||
| aruba_silverpeak | netops | none | | ||
|
||
|
||
## Parser Configuration | ||
|
||
```c | ||
#/opt/sc4s/local/config/app-parsers/app-vps-aruba_silverpeak.conf | ||
#File name provided is a suggestion it must be globally unique | ||
|
||
application app-vps-test-aruba_silverpeak[sc4s-vps] { | ||
filter { | ||
host("silverpeak-" type(string) flags(prefix)) | ||
}; | ||
parser { | ||
p_set_netsource_fields( | ||
vendor('aruba') | ||
product('silverpeak') | ||
); | ||
}; | ||
}; | ||
``` |
32 changes: 32 additions & 0 deletions
32
package/etc/conf.d/conflib/netsource/app-netsource-aruba_silverpeak.conf
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,32 @@ | ||
block parser app-netsource-aruba_silverpeak() { | ||
channel { | ||
rewrite { | ||
r_set_splunk_dest_default( | ||
index('netops') | ||
sourcetype('aruba:silverpeak') | ||
vendor('aruba') | ||
product('silverpeak') | ||
); | ||
}; | ||
}; | ||
}; | ||
|
||
|
||
application app-netsource-aruba_silverpeak[sc4s-network-source] { | ||
filter { | ||
not filter(f_is_source_identified) | ||
and ( | ||
( | ||
match("aruba", value('.netsource.sc4s_vendor'), type(string)) | ||
and match("silverpeak", value('.netsource.sc4s_product'), type(string)) | ||
) | ||
and (tags("ns_vendor:aruba") and tags("ns_product:silverpeak")) | ||
or tags(".source.s_ARUBA_SILVERPEAK") | ||
or "${.netsource.sc4s_vendor_product}" eq "aruba_silverpeak" | ||
) | ||
; | ||
}; | ||
parser { app-netsource-aruba_silverpeak(); }; | ||
}; | ||
|
||
|
11 changes: 11 additions & 0 deletions
11
package/etc/test_parsers/app-vps-test-aruba_silverpeak.conf
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,11 @@ | ||
application app-vps-aruba_silverpeak[sc4s-vps] { | ||
filter { | ||
host("silverpeak-" type(string) flags(prefix)) | ||
}; | ||
parser { | ||
p_set_netsource_fields( | ||
vendor('aruba') | ||
product('silverpeak') | ||
); | ||
}; | ||
}; |
30 changes: 30 additions & 0 deletions
30
package/lite/etc/addons/aruba/app-netsource-aruba_silverpeak.conf
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,30 @@ | ||
block parser app-netsource-aruba_silverpeak() { | ||
channel { | ||
rewrite { | ||
r_set_splunk_dest_default( | ||
index('netops') | ||
sourcetype('aruba:silverpeak') | ||
vendor('aruba') | ||
product('silverpeak') | ||
); | ||
}; | ||
}; | ||
}; | ||
|
||
|
||
application app-netsource-aruba_silverpeak[sc4s-network-source] { | ||
filter { | ||
not filter(f_is_source_identified) | ||
and ( | ||
( | ||
match("aruba", value('.netsource.sc4s_vendor'), type(string)) | ||
and match("silverpeak", value('.netsource.sc4s_product'), type(string)) | ||
) | ||
and (tags("ns_vendor:aruba") and tags("ns_product:silverpeak")) | ||
or tags(".source.s_ARUBA_SILVERPEAK") | ||
or "${.netsource.sc4s_vendor_product}" eq "aruba_silverpeak" | ||
) | ||
; | ||
}; | ||
parser { app-netsource-aruba_silverpeak(); }; | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.