I've been working on something over the past 6 months or so that scans the logs and outputs things in HTML format. Recently, my little girl turned one and we just bought a house a few weeks ago, so spare time (i.e. development time) is at a standstill. My last update in beta integrates an FTP get function before the scanner goes into action. Soon I hope to get the send function at the end going. Further down the road I'll need to sort the months out (right now I handle the 'filing' manually).
Anyhow, take a look here if you want: http://www.rabbibob.com/~foca-cs/logs/apr2004/ If it is any use, I'd be happy to have someone test it out. You need Perl to run it and I've tested under Linux, but run it normally on Windows using ActivePerl. FWIW, I'm a perl noob and this project was mainly started solely with the intent to learn some perl. Something I did way back when I start the idea was the following, which sounds like what you really want, but I dropped it and moved in a different direction. With Perl, read in the file, scan and if it says RCON, then don't print that line out. Of course this one is log by log, but the idea remains the same. Do a directory dump and let it run against the whole directory in auto mode. /shrug [CODE] print "Please enter the log file name:"; chop($LOGFILE_IN=<STDIN>); #output text file for now is out.txt $out="$LOGFILE_IN.txt"; #open the output file & check to make sure it is write + open OUT, ">$out" or die "Cannot open $stuff for write :$!"; #open the input file open LOGFILE_IN, $LOGFILE_IN or die "Cannot open $LOGFILE_IN for read :$!"; #tag the opening line print OUT "This file scanned by Rabbi Bob's LogFile scanner for CS1.6\n"; print OUT "Generated from $LOGFILE_IN\n\n"; $flag=0; $CLANMOD="CLANMOD"; $ADMINMOD="ADMIN"; $RCON="Rcon: "; $HLSWACCESS=0; $ENTRIES=0; $EXITS=0; $BANS=0; $KICKS=0; $TW=0; while (<LOGFILE_IN>) { if ($_=~/$RCON/) { if ($_=~"HLSW: ") { $HLSWACCESS++; } $flag=1; } ## REMOVED OTHER CODE FOR THIS EMAIL if ($flag==0) { #print OUT "$_"; } $flag=0; } print OUT "\n\nTotal HLSW RCON access: $HLSWACCESS (removed for security)\n"; [/CODE] -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [YG]Sharza Sent: Saturday, May 22, 2004 6:15 PM To: [EMAIL PROTECTED] Subject: SV: [hlds] RCON in log file. > Thanks for all the feedback till now but no solution yet to this problem. > The reason I need this is that I want to give access to the logs to some of > my admins but dont want them to get my rcon password (my admins use only amx > for admin rights). If at all possible I'd like to sugest that a cvar be > added something like rcon_password_encrypt 1/0 1=password is encrypted (1 > way hash) in logs 0=password is not encrypted in logs. > > Can anyone help me in how I would go about requesting this to be > implemented? Make a tool or get one somewhere, to pre-procees your log files, and move them To an area where your admins have access like once a day or so. L8r, Sharza _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds