Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions containers/conf/all.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ import (
"github.com/refractionPOINT/usp-adapters/sublime"
"github.com/refractionPOINT/usp-adapters/syslog"
"github.com/refractionPOINT/usp-adapters/trendmicro"
"github.com/refractionPOINT/usp-adapters/unifi_syslog"
"github.com/refractionPOINT/usp-adapters/wel"
"github.com/refractionPOINT/usp-adapters/wiz"
"github.com/refractionPOINT/usp-adapters/zendesk"
Expand Down Expand Up @@ -86,5 +87,6 @@ type GeneralConfigs struct {
Sublime usp_sublime.SublimeConfig `json:"sublime" yaml:"sublime"`
SentinelOne usp_sentinelone.SentinelOneConfig `json:"sentinel_one" yaml:"sentinel_one"`
TrendMicro usp_trendmicro.TrendMicroConfig `json:"trendmicro" yaml:"trendmicro"`
UnifiSyslog usp_unifi_syslog.UnifiSyslogConfig `json:"unifi_syslog" yaml:"unifi_syslog"`
Wiz usp_wiz.WizConfig `json:"wiz" yaml:"wiz"`
}
6 changes: 6 additions & 0 deletions containers/general/tool.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import (
"github.com/refractionPOINT/usp-adapters/sublime"
"github.com/refractionPOINT/usp-adapters/syslog"
"github.com/refractionPOINT/usp-adapters/trendmicro"
"github.com/refractionPOINT/usp-adapters/unifi_syslog"
"github.com/refractionPOINT/usp-adapters/wel"
"github.com/refractionPOINT/usp-adapters/wiz"
"github.com/refractionPOINT/usp-adapters/zendesk"
Expand Down Expand Up @@ -486,6 +487,11 @@ func runAdapter(ctx context.Context, method string, configs Configuration, showC
configs.TrendMicro.ClientOptions.Architecture = "usp_adapter"
configToShow = configs.TrendMicro
client, chRunning, err = usp_trendmicro.NewTrendMicroAdapter(ctx, configs.TrendMicro)
} else if method == "unifi_syslog" {
configs.UnifiSyslog.ClientOptions = applyLogging(configs.UnifiSyslog.ClientOptions)
configs.UnifiSyslog.ClientOptions.Architecture = "usp_adapter"
configToShow = configs.UnifiSyslog
client, chRunning, err = usp_unifi_syslog.NewUnifiSyslogAdapter(ctx, configs.UnifiSyslog)
} else {
return nil, nil, errors.New(logError("unknown adapter_type: %s", method))
}
Expand Down
Loading