Unique IDs in Logfiles |
Post Reply |
Author | |
Bart
Newbie Joined: 20 August 2008 Location: Holland Status: Offline Points: 18 |
Post Options
Thanks(0)
Posted: 28 January 2010 at 9:08am |
Hello,
'
If i wanna make an application that wil read my logfiles and export it to a database i've got the problem that the ID's in the logfile are not unique
for example, in 1 hour of log ID 10020 is the number used for about 16 Sessions
How do this ID numbers in the logfiles be generated and is there a way that i can set a specific amount of time where Logfile ID's stay Unique or are the compleet random generated and do i have to find a way to go around this ?
I'm not a programmer but someone who wan't to help me asked me this questin.
If someone know, please :)
|
|
LogSat
Admin Group Joined: 25 January 2005 Location: United States Status: Offline Points: 4104 |
Post Options
Thanks(0)
|
Sorry Bart, but the IDs are not unique. They represent the ID of the thread that is processing the message. They are unique as one thread can only process one message, so starting from the "Connection" log event up to the "Disconnect" log event there will be only one ID in the logs during that timeframe. After the disconnect however the thread terminates, and Windows can (and will) re-use the same thread ID later on to process another message.
|
|
yapadu
Senior Member Joined: 12 May 2005 Status: Offline Points: 297 |
Post Options
Thanks(0)
|
Bart,
You might want to check out sawmill. It is a log processing software, that you can customize to do a lot of things. I have been playing with it, and it can process the logs and deal with the thread issue. It basically keep track of data by thread and when a disconnect command is issued then it processes the data collected. |
|
Bart
Newbie Joined: 20 August 2008 Location: Holland Status: Offline Points: 18 |
Post Options
Thanks(0)
|
Thanks for the reaction, i know Sawmill and i'v tested it and it workt good but when mails are being filtered and customers are calling me asking where dit my mail go it is more easy to do a search to a database and get back all relative information regarding that mail adres to see why it was quarantined or deleted.
It is just to make the life of our support desk easyer and not for statistics.
I thougt the ID in the lofile was unique but when importing the logfiles we found out the warn't so they reprogrammed the program and it workt fine now.
|
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0.055 seconds.