[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mapguide-users
Subject:    Re: [mapguide-users] Change log to show PC Name if available
From:       Jackie Ng <jumpinjackie () gmail ! com>
Date:       2013-05-29 7:40:05
Message-ID: 1369813205334-5056630.post () n6 ! nabble ! com
[Download RAW message or body]

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.
_______________________________________________
mapguide-users mailing list
mapguide-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapguide-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic