Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Filter to ASM does not work. Pls help

Hi all,

Can anyone help me out pls? Im trying to filter all events with raitings 4 or above. From documentation this url should be correct, but it does not work and wont filter anything/

https://ip_to_f5/mgmt/tm/asm/events/requests?$top=30&$filter=rating eq 4

Thank you in advance

0
Rate this Question

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Michael,

You just need to build the logic in as rating is a sub-property of enforcementState, so this should work:

mgmt/tm/asm/events/requests?$filter=enforcementState/rating ge 4)

See if that helps,

N

0
Comments on this Answer
Comment made 4 months ago by Michal Seckar 70

Perfect, thx a lot. Just dont understand why documentation is quite about this :( Very sad, lots of the issues and not documented at all. This is not my first case...

0
Comment made 4 months ago by Michal Seckar 70

BTW any idea bout this pls :

requests?$top=100&$filter=enforcementState/rating ge 4 and requestDatetime ge 2018-06-14T22:39:05Z

getting

{
"code": 500,
"message": "Incorrectly formatted datetime in '2018' at /usr/local/share/perl5/F5/ASMConfig/Entity/Base.pm line 2677",
"referer": "172.0.0.0",
"restOperationId": 12504727,
"kind": ":resterrorresponse"

}

0