![]() |
[Share] New La2_logd Server ( Perl edition)
Hi all, there perl version of Lin2Logd server.
Whats differenses from off version: 1) No more resident La2 server in the memory (+ RAM) 2) You can setup your own log insertion period ( only 30 mins, in standart L2Logd.exe) 3) You can insert logs offline to prefered DB 4) You can configure this server to insert only what you needs 5) You can insert several log dirs at once, by running prefered count of this servers. 6) No-db mode, where all logs print to STDOUT, you can collect it ( > la2.sql ) to *.sql file, and insert it by MS Query Analyzer 7) You can run server in silent mode (without any STDOUT). 8) Have got error log file 9) More correct work with authd logs, than in standart l2logd server (so users IP wil appear in L2Admin Action Logs) ... and more options in next future ( minor cheat detection for example ); +) More correct lin_CheckLogTimeTable2 procedure (audit logs adds) All You needs, is: 1) Instal ActiveState Perl 2) Install DBD::ODBC (perl module, try ppm3.bat from perl\bin dir) 3) Configure la2_logd.pl ( see in to file, section SERVER CONFIG) 4) Restart L2server, whithout L2Logd, and add start this script like perl.exe la2_logd.pl usage: la2_logd.pl [-a|-sa|-ca|etc...](without args it work with all logs, l2logd except) la2_logd.pl -c (work with only cached logs) la2_logd.pl -a (work with only authd logs) la2_logd.pl -s (work with only l2server logs) la2_logd.pl -n (work with only l2npc logs) la2_logd.pl -l (work with only l2logd logs, not used by default) la2_logd.pl -na (work with only l2npc logs, type audit) la2_logd.pl -ci (work with only cached logs, in type (system)) la2_logd.pl -sa (work with only l2server logs, type audit) There you can see two screens, it shows how server work flows. This version was tested on more than 18Gb logs (half month), without any serious errors. You can feel free to use this script at your own needs, it is not complex, and have more comments. If you have got hex fix from login two users with one char (for self selling and dupe resources), so please share it. Torune's patch is great, but ability for char cloning still exists. <rus>Новый сервер логов, позволяет гораздо гибче настроить процесс их вставки, позволяет регулировать переодичность, тип вставляемых логов, выдает данные в sql формате, для последующей вставки через альтернативные MsSQL интерфейсы (Query Analyzer), учтены косяки оригинального логсервера. Народ, не жмитесь, поделитесь у кого есть хексом на дюп вещей. Ловить таких в логах хорошо, но лучше убрать причину.</rus> Code:
/********************************************NEW VERSION 5.9.6 - more optimisations, more falures check, more command options! Full L2Admin interface compatible http://game.aaanet.ru/tools/la2/la2_logd.5.9.6.zip |
GOOD JOB! :) I'm making similar tool for automatic log inserting from multiple servers.
ps: use perl2exe and you will have no problems with perl installation on server. pps: imho better (faster) use sysread() instead of basic "per line" reading |
Awesome! Great job thanks.
|
uh.... i think "Lineage" is one word, not "Line-Age"... therefore "La2" is... incorrect.
|
hmm can anyone explain in few words advantage of this LogD server?
Anyone got log parser that told me who (char_id) got which item (uniq id, item type) from who (char_id) and when ? ;-DD reading trought gb of logs is very... interest ;] |
[off]
Quote:
[/off] Thanks for this server version, I'll check it |
>Anyone got log parser that told me who (char_id) got which item (uniq id,
>item type) from who (char_id) and when This is standart dupe transaction (for example): 02/03/2006 12:29:xx.xx6, 932,52095,13267,52095,13267,118394,-171034,-24,,,,4,1,53,1,53,1,0,1458,7054,1,12434512,bal,124 34512,bal,4576443 02/03/2006 12:29:xx.xx9, 931,52095,13267,52095,13267,118394,-171034,-24,,,,4,1,53,1,53,1,0,1458,-14108,1,12434512,bal,12434512,bal,4576443 code 931 = PrivateStoreSell code 932 = PrivateStoreBuy look how it seems on the la2admin: 2006-02-03 12:29:01 12434512 bal PrivateStoreBuy 118394 -171034 -24 Race=Dwarf Gender=Female Class=Dwarven Fighter Level=1 Target Character's Class=Dwarven Fighter Target Character's Level=1 Enchant=0 Item Type=Crystal: D Grade Change in Quantity=7054 Price=1 Unique ID=4576443 12434512 bal 2006-02-03 12:29:01 12434512 bal PrivateStoreSell 118394 -171034 -24 Race=Dwarf Gender=Female Class=Dwarven Fighter Level=1 Target Character's Class=Dwarven Fighter Target Character's Level=1 Enchant=0 Item Type=Crystal: D Grade Change in Quantity=-14108 Price=1 Unique ID=4576443 12434512 bal as you can see, bal sell Crystal D to him self so we can construct SQL request, whitch shows, who did the same Code:
SELECT R1.STR_actor, R1.STR_actor_account>uh.... i think "Lineage" is one word, not "Line-Age"... therefore "La2" is... >incorrect. If that, we mast to use only full name - Lineage2, or small L2. Full name is too long for programmers forum where all understand each other right, small name tell nothing special. I think "la2" is the name which may have they place there :) Peoples english talk protocol (PETP) allows this :) |
Thx for your work. :)
But Perl less demanding to resource than LogD ? Sure, if this is server, and it have WEB service, this thing is more needed (and have open source). |
>But Perl less demanding to resource than LogD ?
l2logd is M$VC application, so it much more faster. But as you wrote, it is not open source, and cant be modifyed. On other hand, l2logd needs to be allways in your RAM, perl edition may run when it needs ( at deep night, when no ppl in game, for example). We run it every 60 sec, and have no lags on server (600+) with this configuration: AMD Athlon 64 3800+ X2 (Socket 939, 1024KB L2); ASUS A8N-SLI Deluxe; 4x1Gb Kingston DDR SDRAM PC3200; HDD 70GB 10000rpm; MsSQL EXPRESS 2005 CTP |
NEW VERSION 5.9.6 - more optimisations, more falures check, more command options! Full L2Admin interface compatible
http://game.aaanet.ru/tools/la2/la2_logd.5.9.6.zip See first message |
Sometimes I got that message
SQL request: UPDATE lin2log..log_insert SET rowsprocessed=730, process_time=8 WH ERE log_file='2006-09-21-11-201-authd-in1.log' SQL request: DBD::ODBC::db prepare failed: [Microsoft][ODBC Driver Manager] Invalid string or buffer length (SQL-HY090)(DBD: st_prepare/SQLPrepare err=-1) at la2_logd.pl lin e 433. DBD::ODBC::db prepare failed: [Microsoft][ODBC Driver Manager] Invalid string or buffer length (SQL-HY090)(DBD: st_prepare/SQLPrepare err=-1) at la2_logd.pl lin e 433. As I see from DB - Updated is Done - but after that it's stop working... Any ideas? |
GJ M8 awsome share !
|
I have some problem - but I dont know how te resolve it
My chat logs contains russian letters, and LogD is running on different computer. Both server and log computers have Ukrainian locale. There is all right if I just open log files - I see chat logs correctly... But when perl starts parsing I see in DB something like this ii?ao iu aan ia eeaaaeua iiai?a?i? I guess it's incorrect encoding? anybody knows how to fix that? |
Code:
<meta http-equiv="Content-Type" content="text/html; windows-1251"> |
| All times are GMT. The time now is 21:47. |