cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lior_ke
Level 7
Report Inappropriate Content
Message 1 of 4

Database activity monitoring Custom rules syntax

Hello, 

I'm tring to write a custom rules that will catch statements such as:

grant <some_grant> to <some_user>;

so basically - I need to catch - 'grant * to *'

I think I should use matches functiion for that:

statement matches 'grant * to *' ? but I don't know how to use the regular expression and can't find any documentation about it.

Thanks,

Lior

 

3 Replies
aguevara
McAfee Employee
McAfee Employee
Report Inappropriate Content
Message 2 of 4

Re: Database activity monitoring Custom rules syntax

I just move this post to the Database security group for proper visibility 

lior_ke
Level 7
Report Inappropriate Content
Message 3 of 4

Re: Database activity monitoring Custom rules syntax

Any updates

eti
Level 7
Report Inappropriate Content
Message 4 of 4

Re: Database activity monitoring Custom rules syntax

you can write the rule with the following syntax:

1. statement LIKE 'grant%to%'

2. statement CONTAINS 'grant to'

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