• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 303
  • Last Modified:

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,
0
GurcanK
Asked:
GurcanK
  • 4
  • 2
2 Solutions
 
CEHJCommented:
0
 
GurcanKAuthor Commented:
Any code example welcomes ...

BR
0
 
CEHJCommented:
Using that kind of appender is no different from any other kind

http://logging.apache.org/log4j/1.2/manual.html
0
Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

 
GurcanKAuthor Commented:
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
0
 
CEHJCommented:
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
0
 
CEHJCommented:
:)
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now