This commit is contained in:
Darius 2024-05-27 11:29:47 +02:00
parent 3c6553f37e
commit 4601c0acd9
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ func SendDiscord(params types.Params) {
var embedDescription string
if slices.Contains(strings.Split(params.FullMessage, ","), "discord") {
if slices.Contains(strings.Split(params.FullAlert, ","), "discord") {
fullAlert, _ := json.MarshalIndent(params.WazuhMessage, "", " ")
fullAlertString := strings.ReplaceAll(string(fullAlert), `"`, "")
fullAlertString = strings.ReplaceAll(fullAlertString, "{", "")

View File

@ -7,7 +7,7 @@ type Params struct {
Tags string
Click string `yaml:"click,omitempty"`
Targets string `yaml:"targets,omitempty"`
FullMessage string `yaml:"full_message,omitempty"`
FullAlert string `yaml:"full_message,omitempty"`
ExcludedRules string `yaml:"excluded_rules,omitempty"`
ExcludedAgents string `yaml:"excluded_agents,omitempty"`
Color int