-
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.
fixes #1422 improvements Update plugin.jinja Update app-syslog-beyondtrust_sra.conf Update app-postfilter-cisco_ise.conf Update app-postfilter-cisco_ise.conf
- Loading branch information
rfaircloth-splunk
committed
Feb 4, 2022
1 parent
d5c1fc5
commit 688ca0e
Showing
10 changed files
with
326 additions
and
10 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,47 @@ | ||
# Vendor - Beyond Trust | ||
|
||
|
||
## Product - Secure Remote Access (Bomgar) | ||
|
||
| Ref | Link | | ||
|----------------|---------------------------------------------------------------------------------------------------------| | ||
| Splunk Add-on | None | | ||
| Product Manual | unknown | | ||
|
||
|
||
### Sourcetypes | ||
|
||
| sourcetype | notes | | ||
|----------------|---------------------------------------------------------------------------------------------------------| | ||
| beyondtrust:sra | None | | ||
|
||
### Sourcetype and Index Configuration | ||
|
||
| key | sourcetype | index | notes | | ||
|----------------|----------------|----------------|----------------| | ||
| beyondtrust_sra | beyondtrust:sra | infraops | none | | ||
|
||
### Filter type | ||
|
||
MSG Parsing | ||
|
||
### Setup and Configuration | ||
|
||
Device setup unknown | ||
|
||
### Options | ||
|
||
| Variable | default | description | | ||
|----------------|----------------|----------------| | ||
| SC4S_ARCHIVE_BEYONDTRUST_SRA | no | Enable archive to disk for this specific source | | ||
| SC4S_DEST_BEYONDTRUST_SRA_HEC | no | When Splunk HEC is disabled globally set to yes to enable this specific source | | ||
| SC4S_DEST_BEYONDTRUST_SRA_SPLUNK_HEC_FMT | json | Restructure data from vendor format to json for splunk destinations | | ||
| SC4S_DEST_BEYONDTRUST_SRA_SYSLOG_FMT | json | Restructure data from vendor format to SDATA for SYSLOG destinations | | ||
|
||
### Verification | ||
|
||
An active device will generate frequent events. Use the following search to validate events are present per source device | ||
|
||
``` | ||
index=<asconfigured> sourcetype=beyondtrust:sra | stats count by host | ||
``` |
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
48 changes: 48 additions & 0 deletions
48
package/etc/conf.d/conflib/post-filter/app-postfilter-beyondtrust_sra.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,48 @@ | ||
template t_beyondtrust_sra { | ||
template("${.values.siteid}:${.values.seq}:${values.num}:${.gb.message}"); | ||
}; | ||
|
||
block parser app-postfilter-beyondtrust_sra() { | ||
channel { | ||
|
||
parser{ | ||
grouping-by( | ||
scope(program) | ||
key("${.values.siteid}") | ||
trigger("$(context-length)" >= "${.values.num}") | ||
sort-key("${.values.seq}") | ||
aggregate( | ||
value(".gb.complete" "1") | ||
value(".gb.message" "$(implode ';' $(list-slice 0:-1 $(context-values ${.message})))") | ||
value(".values.siteid", "00") | ||
value(".values.num", "${.values.siteid}@1") | ||
value("PROGRAM" "${PROGRAM}@1") | ||
value(".splunk.sc4s_template", "t_beyondtrust_sra") | ||
value("fields.sc4s_merge_count", "$(context-length)") | ||
value(".structured.level", "full") | ||
value(".structured.splunk_hec", "json") | ||
value(".structured.syslog", "sdata") | ||
inherit-mode(context) | ||
) | ||
timeout(10) | ||
); | ||
}; | ||
|
||
rewrite { | ||
r_set_splunk_dest_update( | ||
vendor('null') product('queue') | ||
condition("${.gb.complete}" ne "1") | ||
); | ||
}; | ||
|
||
|
||
}; | ||
}; | ||
application app-postfilter-beyondtrust_sra[sc4s-postfilter] { | ||
filter { | ||
"${PROGRAM}" eq "BG" | ||
and "${.values.num}" > "1"; | ||
}; | ||
parser { app-postfilter-beyondtrust_sra(); }; | ||
}; | ||
|
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
100 changes: 100 additions & 0 deletions
100
package/etc/conf.d/conflib/syslog/app-syslog-beyondtrust_sra.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,100 @@ | ||
block parser app-syslog-beyondtrust_sra() { | ||
channel { | ||
rewrite { | ||
r_set_splunk_dest_default( | ||
index('infraops') | ||
sourcetype('beyondtrust:sra') | ||
vendor("beyondtrust") | ||
product("sra") | ||
template('t_msg_only') | ||
); | ||
set("full" value(".structured.level")); | ||
set("json" value(".structured.splunk_hec")); | ||
set("sdata" value(".structured.syslog")); | ||
}; | ||
parser { | ||
regexp-parser( | ||
prefix(".tmp.") | ||
patterns('^(?<siteid>\d+):(?<seq>\d+):(?<num>\d+):(?<message>.*)') | ||
); | ||
kv-parser( | ||
prefix(".values.") | ||
pair-separator(";") | ||
template('${.tmp.message}') | ||
); | ||
}; | ||
rewrite { | ||
set('${.tmp.siteid}' value('.values.siteid')); | ||
set('${.tmp.seq}' value('.values.seq')); | ||
set('${.tmp.num}' value('.values.num')); | ||
set('${.tmp.message}' value('.message')); | ||
groupunset(values(".tmp.*")); | ||
}; | ||
}; | ||
}; | ||
application app-syslog-beyondtrust_sra[sc4s-syslog] { | ||
filter { | ||
"${PROGRAM}" eq "BG" | ||
}; | ||
parser { app-syslog-beyondtrust_sra(); }; | ||
}; | ||
|
||
|
||
|
||
#Destination type formatters | ||
block parser app-syslog-beyondtrust_sra-splunk_hec() { | ||
channel { | ||
rewrite{ | ||
set("t_json_values", value(".splunk.sc4s_template")); | ||
}; | ||
}; | ||
}; | ||
application app-syslog-beyondtrust_sra-splunk_hec[sc4s-lp-dest-format-hec_fmt] { | ||
filter { | ||
"${${fields.sc4s_vendor}}" eq "beyondtrust" | ||
and "${fields.sc4s_product}" eq "sra" | ||
and ( | ||
"`SC4S_DEST_BEYONDTRUST_SRA_SPLUNK_HEC_FMT`" eq "" | ||
or "`SC4S_DEST_BEYONDTRUST_SRA_SPLUNK_HEC_FMT`" eq "JSON" | ||
) | ||
}; | ||
parser { app-syslog-beyondtrust_sra-splunk_hec(); }; | ||
}; | ||
|
||
block parser app-syslog-beyondtrust_sra-syslog() { | ||
channel { | ||
parser { | ||
map-value-pairs( | ||
key('.values.*' rekey(shift-levels(2) add-prefix(".SDATA.sc4sfields@27389."))) | ||
); | ||
map-value-pairs( | ||
key('fields.*' rekey(shift-levels(2) add-prefix(".SDATA.sc4smeta@27389."))) | ||
); | ||
}; | ||
rewrite{ | ||
unset(value('MESSAGE')); | ||
}; | ||
}; | ||
}; | ||
application app-syslog-beyondtrust_sra-syslog[sc4s-lp-dest-format-syslog] { | ||
filter { | ||
"${${fields.sc4s_vendor}}" eq "beyondtrust" | ||
and "${fields.sc4s_product}" eq "sra" | ||
and ( | ||
"`SC4S_DEST_BEYONDTRUST_SRA_SYSLOG_FMT`" eq "" | ||
or "`SC4S_DEST_BEYONDTRUST_SRA_SYSLOG_FMT`" eq "SDATA" | ||
) | ||
}; | ||
parser { app-syslog-beyondtrust_sra-syslog(); }; | ||
}; | ||
|
||
block parser app-syslog-beyondtrust_sra-bsd() { | ||
channel { | ||
rewrite{ | ||
set('$(template ${.splunk.sc4s_template:-t_hdr_msg})' value('MESSAGE')); | ||
}; | ||
}; | ||
}; | ||
application app-syslog-beyondtrust_sra-bsd[sc4s-lp-dest-format-bsd] { | ||
parser { app-syslog-beyondtrust_sra-bsd(); }; | ||
}; |
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
Oops, something went wrong.