sbsmac 0 Posted June 12, 2004 Does anyone know if it is possible to capture the server logs to a file when running the windows 1.96 server ? The server-admin docs don't give any hint of how this might be done. The linux server appears to send logs to stdout which means that they can just be redirected to a file but the windows server uses a dialog for output :-( At the moment, the only way I have of saving logfiles is to cut and paste from the dialog but this means we lose information if the server crashes or is restarted. Background: the reason I want this information is to get an 'audit-trail' of who has been on the server at what times; who has used duplicate or invalid ids, modifiied configs etc. I also have a tool which can identify mid-game quitters from the logs, but obviously it's no good if the logs aren't there in the first place. ;-) It would be very nice if the chat-logs were also accessible (to identify abusive and anti-social players) but I guess that is a request for the OFP2 forum ;-) Thanks for any help on this - I'm hoping there is simply a '-log' command or similar but no amount of google searching has turned up anything. mac Share this post Link to post Share on other sites
RN Malboeuf 12 Posted June 13, 2004 use the search button ooo and it can be done, it's just there is really no good enough reason to build it, linux does it all ready Share this post Link to post Share on other sites
sbsmac 0 Posted June 13, 2004 RN, thanks for the response. However, I have already used the search button (searching for 'log' and a number of other related words), tried google, the Avon lady FAQ, and even read the documentation (admin server and user guides). Quote[/b] ] linux does it all ready As I said in my original post, the difference appears to be simply that the linux server directs its output to STDOUT where it can be captured by standard methods. The windows server directs its output to a dialog which is not so easily captured. Unfortunately, since my server is a windows box, telling me that 'linux does it already' isn't terribly helpful. ;-) For the benefit of others who may be interested, I have since discovered that there is a 'netlog' command which appears to produce rather voluminous output (6Meg in less than 12 hours). This would do in a pinch but seems a bit of overkill for what I want. If anyone has any pointers as to what the format of the output is I'd be interested - there are some hints on the net that this is mainly traffic analysis rather than raw traffic; some simple tests indicate that chat traffic doesn't seem to be present here. There also appears to be a 'logfiles' command which seems more promising - I'll give this a try today and report back. (BTW, this information can be found at http://groups.google.com/groups?....&rnum=1 ) Share this post Link to post Share on other sites
benu 1 Posted June 13, 2004 The netlog option seems to be the option that was used for netcode debugging in the inofficial 1.93 patches. You could test for that by putting a file called nolog.txt into the server folder and see if the logging stops then. Share this post Link to post Share on other sites
kerensky 0 Posted June 18, 2004 yeh netlog command does it give all info required id, nick, and IP numbers for players. Share this post Link to post Share on other sites
darkpeace 0 Posted July 5, 2004 If you store the NetLog file on a NTFS (Compressed) partition then it ain't really anywhere near the 6mb in 12 hours as it is mostly text it would compress very well indeed, at a minimum of CPU overhead. PS: NTFS lets you use NTFS Compession on a per file basis aswell, so search for all *.txt and *.log on a system, and flag them as compressed (Hey; that one was actually a useful tip.) That'll be 2c thx (just kidding) Share this post Link to post Share on other sites