Print Page | Close Window

Unique IDs in Logfiles

Printed From: LogSat Software
Category: Spam Filter ISP
Forum Name: Spam Filter ISP Support
Forum Description: General support for Spam Filter ISP
URL: https://www.logsat.com/spamfilter/forums/forum_posts.asp?TID=6795
Printed Date: 28 December 2024 at 9:04pm


Topic: Unique IDs in Logfiles
Posted By: Bart
Subject: Unique IDs in Logfiles
Date 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 :)



Replies:
Posted By: LogSat
Date Posted: 28 January 2010 at 10:42pm
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.

-------------
Roberto Franceschetti

http://www.logsat.com" rel="nofollow - LogSat Software

http://www.logsat.com/sfi-spam-filter.asp" rel="nofollow - Spam Filter ISP


Posted By: yapadu
Date Posted: 30 January 2010 at 7:34pm
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.


Posted By: Bart
Date Posted: 05 February 2010 at 7:35am
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.
 



Print Page | Close Window