-
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.
Merge branch 'main' into junos_perfmon
- Loading branch information
Showing
20 changed files
with
228 additions
and
43 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
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') | ||
); | ||
}; | ||
}; | ||
``` |
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 |
---|---|---|
@@ -1 +1 @@ | ||
3.29.0 | ||
3.30.1 |
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(); }; | ||
}; |
Oops, something went wrong.