- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
ESA and GeoIP
Hi,
I have rule created in ESA to fire on specific criteria in Web logs. I have added the GeoIP as an enrichmnet (lookup based on ip_src. All this works just fine. As part of the rule I want to fire off an e-mail alert, but I only want to include one element (region) of the GeoIP enrichment date not all the elements. Does anyone know how I can reference just the one element in the e-mail template. I have tried
----Snip----
<#list events as metadata>
---Snip---
${metadata.GeoIpLoookup.region
---snip--
but that does not appear to work.
Any suggestions would be greatly appreciated.
Thanks
James
- Tags:
- Community Thread
- Discussion
- Forum Thread
- NetWitness
- NW
- NWP
- RSA NetWitness
- RSA NetWitness Platform
- security_analytics
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
The GeoIpLookup meta of the event is a sequence itself. So, it needs to be indexed too. What you have already is /almost/ correct - all you need is a [0] after the GeoIpLookup.
Does this work?
<#list events as metadata>
${metadata.GeoIpLookup[0].region}
</#list>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
you can use inside the <#list> tag
<#if metadata_index==1>
${metadata.GeoIpLoookup.region}
</#if>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
The GeoIpLookup meta of the event is a sequence itself. So, it needs to be indexed too. What you have already is /almost/ correct - all you need is a [0] after the GeoIpLookup.
Does this work?
<#list events as metadata>
${metadata.GeoIpLookup[0].region}
</#list>
