How to prevent logging of repeated failure on API?

0
Hi, We’ve published an API which is being used by other applications. One of these applications has a user called webservice_accp_mendix. This user keeps trying to login, causing multiple loglines to be written: 2023-03-27T13:37:57.768807 [APP/PROC/WEB/0]   WARNING - Core: Login FAILED: unknown user 'webservice_accp_mendix'. 2023-03-27T13:37:57.772289 [APP/PROC/WEB/0]   WARNING - REST Publish: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.core.AuthenticationRuntimeException: login failed 2023-03-27T13:37:57.772326 [APP/PROC/WEB/0]   WARNING - REST Publish: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.core.AuthenticationRuntimeException: login failed 2023-03-27T13:37:57.772412 [APP/PROC/WEB/0]      at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:110) Is there a way to prevent the logs from being flooded with these login attempts on the side of our application? We’ve not been able to locate the source of the login attempts yet...
asked
1 answers
0

Hi,

As far as I understand, you should manage that on your Call Rest Service Node in you microlfow with set error handler. 
- Set a threshold for errors for each individual users 
- Create an entity call as IP_Restriction.
- If a user exceed that threshold. Write to that table.
- Add a control logic on your microlow for restricted ips..

Is that sounds ok for your requirements?

answered