You will need to write a program in native code that does this, and then access the code through JNI or JNA. I believe Microsoft provides a way to access the event log through .NET. Do a search for the EventLog type.
The mind is a strange and wonderful thing. I'm not sure that it will ever be able to figure itself out, everything else, maybe. From the atom to the universe, everything, except itself.