fix
This commit is contained in:
parent
3c6553f37e
commit
4601c0acd9
@ -16,7 +16,7 @@ func SendDiscord(params types.Params) {
|
|||||||
|
|
||||||
var embedDescription string
|
var embedDescription string
|
||||||
|
|
||||||
if slices.Contains(strings.Split(params.FullMessage, ","), "discord") {
|
if slices.Contains(strings.Split(params.FullAlert, ","), "discord") {
|
||||||
fullAlert, _ := json.MarshalIndent(params.WazuhMessage, "", " ")
|
fullAlert, _ := json.MarshalIndent(params.WazuhMessage, "", " ")
|
||||||
fullAlertString := strings.ReplaceAll(string(fullAlert), `"`, "")
|
fullAlertString := strings.ReplaceAll(string(fullAlert), `"`, "")
|
||||||
fullAlertString = strings.ReplaceAll(fullAlertString, "{", "")
|
fullAlertString = strings.ReplaceAll(fullAlertString, "{", "")
|
||||||
|
|||||||
@ -7,7 +7,7 @@ type Params struct {
|
|||||||
Tags string
|
Tags string
|
||||||
Click string `yaml:"click,omitempty"`
|
Click string `yaml:"click,omitempty"`
|
||||||
Targets string `yaml:"targets,omitempty"`
|
Targets string `yaml:"targets,omitempty"`
|
||||||
FullMessage string `yaml:"full_message,omitempty"`
|
FullAlert string `yaml:"full_message,omitempty"`
|
||||||
ExcludedRules string `yaml:"excluded_rules,omitempty"`
|
ExcludedRules string `yaml:"excluded_rules,omitempty"`
|
||||||
ExcludedAgents string `yaml:"excluded_agents,omitempty"`
|
ExcludedAgents string `yaml:"excluded_agents,omitempty"`
|
||||||
Color int
|
Color int
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user