This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Accept
Reject

NetWitness Community

  • Home
  • Products
    • NetWitness Platform
      • Advisories
      • Documentation
        • Platform Documentation
        • Known Issues
        • Security Fixes
        • Hardware Documentation
        • Threat Content
        • Unified Data Model
        • Videos
      • Downloads
      • Integrations
      • Knowledge Base
    • NetWitness Cloud SIEM
      • Advisories
      • Documentation
      • Knowledge Base
    • NetWitness Detect AI
      • Advisories
      • Documentation
      • Knowledge Base
    • NetWitness Investigator
    • NetWitness Orchestrator
      • Advisories
      • Documentation
      • Knowledge Base
      • Legacy NetWitness Orchestrator
        • Advisories
        • Documentation
  • Community
    • Blog
    • Discussions
    • Events
    • Idea Exchange
  • Support
    • Case Portal
      • Create New Case
      • View My Cases
      • View My Team's Cases
    • Community Support
      • Getting Started
      • News & Announcements
      • Community Support Forum
      • Community Support Articles
    • Product Life Cycle
    • Support Information
    • General Security Advisories
  • Training
    • Blog
    • Certification Program
    • Course Catalog
    • New Product Readiness
    • On-Demand Subscriptions
    • Student Resources
    • Upcoming Events
  • Technology Partners
  • Trust Center
Sign InRegister Now
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
NetWitness Discussions
Announcement Banner

Users are unable to open Netwitness Support Cases via email. Please open support cases via portal or by phone

View Details
  • NetWitness Community
  • Discussions
  • ESA - Match on Multiple Occurrences of a Single Meta-Key?
  • Options
    • Subscribe to RSS Feed
    • Mark Topic as New
    • Mark Topic as Read
    • Float this Topic for Current User
    • Bookmark
    • Subscribe
    • Mute
    • Printer Friendly Page

ESA - Match on Multiple Occurrences of a Single Meta-Key?

drewjc
drewjc Occasional Contributor
Occasional Contributor
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

‎2018-06-22 03:39 PM

Hi,

 

I want to build an ESA alert that will trigger on any single event where multiple instances of the error meta-key are present in the event metadata.

 

As an example,

 

feed.name    =    "investigation"
analysis.file    =    
error    =    
error    =    
error    =    

 

I've already tried numerous approaches but nothing seems to work. Also, I found it interesting to note that the error meta-key is of type string and not a string array.

 

Any suggestions would be welcomed and appreciated. Thanks in advance.

  • Community Thread
  • Discussion
  • EPL
  • epl rule
  • ESA
  • Esper
  • Event Stream Analysis
  • Forum Thread
  • metakey
  • NetWitness
  • NW
  • NWP
  • RSA NetWitness
  • RSA NetWitness Platform
  • write epl rules
0 Likes
Share
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
1 REPLY 1

NickMikhal
NickMikhal Beginner
Beginner
Options
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

‎2018-06-25 11:24 AM

Hello Drew,

First you change variable type of meta 'error' to string array: 000032359 - Changing ESA Variable Type in RSA Security Analytics 10.5 

Then you use default string array operators with this meta: ALL, ANY, etc: Chapter 9. EPL Reference: Operators

Or RSA custom functions matchLike, matchRegex: Alerting: Sample Advanced EPL Rules

Or you can change type to string with CAST function but it will work properly only if there is 1 metakey for this string array for particular msg.id as it will grab the first registered value: Chapter 10. EPL Reference: Functions 

Some standard java/esper iterators will work in esper online, but will not work in ESA, due to actually string array is implemented as vector type in ESA: https://community.rsa.com/message/871203?commentID=871203#comment-871203

0 Likes
Share
Reply
Powered by Khoros
  • Blog
  • Events
  • Discussions
  • Idea Exchange
  • Knowledge Base
  • Case Portal
  • Community Support
  • Product Life Cycle
  • Support Information
  • About the Community
  • Terms & Conditions
  • Privacy Statement
  • Acceptable Use Policy
  • Employee Login
© 2022 RSA Security LLC or its affiliates. All rights reserved.