2024-03-22 13:11:46 +00:00
|
|
|
type: http
|
|
|
|
|
|
|
|
name: discord
|
|
|
|
|
|
|
|
log_level: info
|
|
|
|
|
|
|
|
format: |
|
|
|
|
{
|
|
|
|
"content": null,
|
|
|
|
"embeds": [
|
|
|
|
{{range . -}}
|
|
|
|
{{$alert := . -}}
|
|
|
|
{{range .Decisions -}}
|
|
|
|
{
|
|
|
|
"title": "{{.Scenario}}",
|
2024-03-23 08:26:18 +00:00
|
|
|
"description": "{{if $alert.Source.Cn -}}:flag_{{ $alert.Source.Cn | lower }}:{{end}}{{if not $alert.Source.Cn -}}:pirate_flag:{{end}} {{$alert.Source.IP}}\nCount : {{ $alert.EventsCount }}\n{{if $alert.Source.AsNumber -}}AS{{ $alert.Source.AsNumber }}: {{ $alert.Source.AsName }}{{else}}AS: N/A{{end}}\nAction: {{.Type}} {{.Duration}} on {{ Hostname }}\nStart: {{ $alert.StartAt }}\nStop: {{ $alert.StopAt }}",
|
2024-03-22 13:11:46 +00:00
|
|
|
"color": "16711680"
|
|
|
|
}
|
|
|
|
{{end -}}
|
|
|
|
{{end -}}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
url: https://discord.com/api/webhooks/[]/[]
|
|
|
|
|
|
|
|
method: POST
|
|
|
|
|
|
|
|
headers:
|
|
|
|
Content-Type: application/json
|