cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Regex in correlation rules

Jump to solution

Hi,

Is there any way to use a regular expression inside a correlation rule?

I want to filter out  in a rule a set of users identified by a regex. Does anyone know if it is possible to do it??

Thanks!

1 Solution

Accepted Solutions
Highlighted
Level 12
Report Inappropriate Content
Message 4 of 4

Re: Regex in correlation rules

Jump to solution

Hi,

you can not use regex on the field source user. Take a look und the fiel Message_Text than on the drop down (In, Not In Contains Regex). This field have the option for regex.

View solution in original post

3 Replies
Highlighted
Level 12
Report Inappropriate Content
Message 2 of 4

Re: Regex in correlation rules

Jump to solution

Hi you can use regex in correlation rule but you need a field based on string.

Highlighted

Re: Regex in correlation rules

Jump to solution

Thanks, I have tried but did not work, maybe I am doing something wrong?

When using this regex over the source name field, it does nothing

Captura.PNG

Can you tell me if this is the proper way to use regex?

Captura.PNG
The regex is "regex((\w{3}-[\w|\d]{7}-\d{3}\$)|(MSA_\w{3}_\w{3}\$.*)|(NLEP[^\d]*\d{3}\$|[sS][vV][cC][-_].*|VLAN-.*\$|EPCVLANTEST.*\$))", I have tested it and works fine.

Regards!

Highlighted
Level 12
Report Inappropriate Content
Message 4 of 4

Re: Regex in correlation rules

Jump to solution

Hi,

you can not use regex on the field source user. Take a look und the fiel Message_Text than on the drop down (In, Not In Contains Regex). This field have the option for regex.

View solution in original post

You Deserve an Award
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.

Community Help Hub

    New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community