tco
(colin)
July 28, 2022, 3:01pm
1
Hello,
I would like to personalise my email alerts.
Currently, here is what I have set:
—[ALERTE]---------------------------
Un mauvais mot de passe a été forcé au moins 3 fois sur les 30 dernières secondes
${if backlog}
--- [Logs] ------------------------------------
${foreach backlog message}
Informations: ${message.fields.message}
Source : ${event.source}
Heure ${event.timestamp}
${end}
${end}
Here it is an alert in case several wrong passwords have been entered
Currently only the time field returns a value… how can I get a value with the wrong username? My information and source fields are not working… thanks
Translated with DeepL Translate: The world's most accurate translator (free version)
gsmith
(GSmith)
July 28, 2022, 11:40pm
2
Hello @tco
First , please use the markdown when posting Codes/Logs/Configuration files shown here
Second, your macros are incorrect in this section of the Notification file.
tco:
Source : ${event.source}
Heure ${event.timestamp}
It should be like this.
Source: ${message.source}
Heure: ${message.timestamp}
if you have other fields that are needed and are NOT default fields, you need to set them like this example:
Users: ${messages.fields.users}
tco
(colin)
July 29, 2022, 8:24am
3
bonjour,
merci pour votre réponse
j’ai configuré comme ceci mais je n’ai pas de retour dans le champ source :
—[ALERTE]---------------------------
Le journal d'audit a été effacé volontairement
${if backlog}
--- [Logs] ------------------------------------
${foreach backlog message}
Information: ${message.fields.full_message}
Source: ${message.fields.source}
Heure: ${message.timestamp}
${end}
${end}
i tried ${messages.fields.sources} et ${messages.sources}
here is the content of the source field I would like to display
Hi,
you used messages :
tco:
${messages.sources}
Try it with only message :
${message.source}
1 Like
system
(system)
Closed
August 15, 2022, 6:35am
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.