Custom RegEx is not working in Event Rule's Transform and Compose Alert Output

BikashH
Tera Contributor

I have to set up an Event Rule to Populate 'POP Details' from the 'Source' field of the Event.

 

When I'm creating RegEx by dragging the mouse, it is working but when I'm writing a custom RegEx, it is not working.

 

Sample Event's Source:

abc1.auc-001.ao-xyz.co

xyz2.ccd-005.xo-abc.io

 

Here I want to capture the characters in between 1st and 2nd dot(.) and assign it to 'POP Details' field of 'em_alert' table. For this I'm using this RegEx-

/\.([^.]*)\./

 

This RegE is tested in https://regex101.com/ it's returning the desired value, but I'm not getting desired value while using it through Event Rule's Transform and Compose Alert Output option.

 

Screenshot 2024-07-25 205454.png

 

After this Event is processed by Event Rule, <<UNKNOWN>> gets mapped in 'POP Details' field of 'em_alert' table.

 

Untitled.png

 

If anyone has any suggestion to rectify this issue it will be highly appreciated.

2 REPLIES 2

AshishKM
Kilo Patron
Kilo Patron

Hi @BikashH , 

Can you please share the mapping for this.  

 

example :

AshishKM_0-1721924448224.png

 

-Thanks,

AshishKM


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

BikashH
Tera Contributor

PFBScreenshot 2024-07-25 221540.png