cancel
Showing results for 
Search instead for 
Did you mean: 

How to obtain rule name

Jump to solution

Hi,

Does anybody know how to obtain rule name which blocks request or response?

0 Kudos
1 Solution

Accepted Solutions
asabban
Level 17

Re: How to obtain rule name

Jump to solution

There is a property called "Rules.CurrentRuleName" It should be possible to log this on a template/logfile.

Best,

Andre

0 Kudos
6 Replies
asabban
Level 17

Re: How to obtain rule name

Jump to solution

There is a property called "Rules.CurrentRuleName" It should be possible to log this on a template/logfile.

Best,

Andre

0 Kudos

Re: How to obtain rule name

Jump to solution

Thanks. it works. But i have additional question: how to obtain rule set name?

It is important, becouse it is possible having 2 rules with the same name..

0 Kudos
asabban
Level 17

Re: How to obtain rule name

Jump to solution

Hello!

Try "Rules.CurrentRuleSetName" :-)

Best,

Andre

0 Kudos

Re: How to obtain rule name

Jump to solution

Unfortunately I don't have this property

Schowek-1.jpg

0 Kudos
eelsasser
Level 15

Re: How to obtain rule name

Jump to solution

You're right. There is no RuleSetName in the current version.

You should avoid using the same name in multiple rules. Give each one a unique name so they are distinguishable in the logs or templates.

0 Kudos
asabban
Level 17

Re: How to obtain rule name

Jump to solution

Yes I am sorry, this is obviously not (yet) available. Seems that my internal source was not correct - sorry for the inconvenience.

Best,

Andre

0 Kudos