How can I find which application is connected or disconnect via rule

For test connection this below can be used .