MULE-4: Logging SFTP login attempts

422 Views Asked by At

We need to log each time sftp connector make a attempt to login into SFTP server. We are listening on SFTP server using new or update sftp component and wants to log each time connector makes an attempt to login into SFTP server. EDIT## Is there a way to override the methods implemented for SFTP connection internally to achieve this request. https://github.com/mulesoft/mule-sftp-connector

2

There are 2 best solutions below

3
aled On

The SFTP connector doesn't notify the login attempts. If it can connect, log in, and detects new files, then it will trigger the flow execution. But I don't think that there is a login event that can be tracked.

0
Prudhvi B On

We can track login attempts by enabling debug logs as per this documentation https://docs.mulesoft.com/mule-runtime/4.3/enable-verbose-logging