[mapguide-users] Change log to show PC Name if available

Jackie Ng jumpinjackie at gmail.com
Wed May 29 00:40:05 PDT 2013


The problem here is that I don't think client hostnames are sent as part of
any HTTP or API call to MapGuide.

What you could do is have a log analyzer keep watch on the access.log and
anytime new entries are written, have the log analyzer name resolve the IP
addresses in those new log entries.

A real basic .net example would be some application using the
FileSystemWatcher class that's pointed to your mapguide access.log, listen
on any file change events and when these events are raised, have your
handler extract the IP address components from these new lines resolve them
to actual host names (so you know what host name that IP resolves to *at the
time the entry was logged*), then decide what you want to do with these
transformed log entries.

An example:
http://stackoverflow.com/questions/1198841/getting-new-lines-from-a-file-with-filesystemwatcher

- Jackie



--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Change-log-to-show-PC-Name-if-available-tp5056604p5056630.html
Sent from the MapGuide Users mailing list archive at Nabble.com.


More information about the mapguide-users mailing list