GurcanK
asked on
How to Create Audit Logs for a Java Program in Terminal Services Environment
Dear experts,
We have a Java program running in Windows 2008 x64 Terminal Server. The users connect to the program using Remote Desktop, run queries and generates reports. Recently, our customer required us to write audit logs depicting which user connects when and with which IP as well as computer name. Caring that the program is run thru Terminal Services, how can we achieve this?
BR,
We have a Java program running in Windows 2008 x64 Terminal Server. The users connect to the program using Remote Desktop, run queries and generates reports. Recently, our customer required us to write audit logs depicting which user connects when and with which IP as well as computer name. Caring that the program is run thru Terminal Services, how can we achieve this?
BR,
ASKER
Any code example welcomes ...
BR
BR
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks,
One more question about the issue: Is it possible to write terminal services aware program in Java using Windows APIs? If so, how can I do this? For example whether I am able to use APIs to collect connected sessions information.
BR
One more question about the issue: Is it possible to write terminal services aware program in Java using Windows APIs? If so, how can I do this? For example whether I am able to use APIs to collect connected sessions information.
BR
I'm not aware of any API, though you could Google it. If all else fails, you could call the Windows API using JNA with Java
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:)
http://logging.apache.org/log4j/1.2/apidocs/org/apache/log4j/nt/NTEventLogAppender.html