I’m trying to set up an alert and get the IP address from the message, but I cant get the formatting right.
--- [Event Definition] ---------------------------
Title: ${event_definition_title}
Description: ${event_definition_description}
Type: ${event_definition_type}
--- [Event] --------------------------------------
Timestamp:${event.timestamp}
Alert Condition Title:${alertCondition.title}
Message:${event.message}
Timestamp Processing: ${event.timestamp}
Timerange Start: ${event.timerange_start}
Timerange End: ${event.timerange_end}
Source IP: ${message.fields_entries.IpAddress}
Fields:
${foreach event.fields field} ${field.key}: ${field.value}
${end}
${if backlog}
--- [Backlog] ------------------------------------
Last messages accounting for this alert:
${foreach backlog message}
${message}
${end}
${end}
And the message is a standard EventID 4625 failed login from Windows
I can’t grab the IP address correctly
{
“message”: {
“fields”: {
“WorkstationName”: “TxxxxxxT2”,
“EventID”: 4625,
“IpAddress”: “10.xx.xx133”,
“TargetUserName”: “zxxxxxxxxxxra”,
“TargetUserSid”: “S-1-0-0”
},
“complete”: true,
“field_count”: 34,
“validation_errors”: “”,
“fields_entries”: [
{
“WorkstationName”: “Txxxxxxxx”
},
{
“streams”: [
“000000000000000000000001”,
“5ef6151f74f25d31d7335465”
]
},
{
“SubjectUserName”: “-”
},
{
“IpAddress”: “10.xx.xx133”
},
{
“TargetUserName”: “zoxxxxxxxa”
},
{
“TargetUserSid”: “S-1-0-0”
}
],
}