Ideally I'd like to use piwik to track conversions from ads to server connections on port 5000 and port 5001 but I highly doubt that is even possible.
I'm willing to settle for [ipaddress,time connected, time disconnected] and I'm fairly positive I will be able to code a parser that outputs the information in that format.
So my question is. What log file records server connections and port numbers. Is there a log file in Debian Linux that I can parse to gain insight on how users are connecting to and using my server? Are there tools already built for this type of information collection?