May 28, 2009, 8:17 AM
I am writing a perl script and need some in extracting some data. Basically it is a Log Analyzer and there are multiple log files from where the data comes.
i am done with the grep part of the userID with this code-
it gave me this output--
open(VALUE, "< arcotwebfort_20May09_00_03_55.log");
@stock = <VALUE>;
@matches = (grep(/$username/, @stock));
i got the sessionID's from this,they are-10088781,10088815. like this there are plenty of sessionID related to a single user.
i collected this information in an array @matches. now i want to take sessionID's from this array and search for the sessionID in the logfile which AuthMechanism it belongs to.
There are three-four AuthMechanism to which a user can belong.they are--
On the basis of these mechanisms i need to know the user belongs to which mechanism. This part is very tricky for me and i am stuck here as i am not well wersed with Perl and learning it.
I will upload my logfile. please suggest me to proceed further.
If my questions are not clear to you please let me know i will try to explain them better.Please help me in proceeding further, i am also trying to write it myself.
What i want is what the given user is doing in the session id and the session id is related to which mechanism.
So let say my script takes username as arguememnt, i am able to print all the information that is related to that user with sessionID's. this sessionID is related to diffrent Authentication mechanism mentioned earlier.The user can belong to any or all mechanisms.my basic criteria is that the user belongs to which mechanism and he is doing what(data related to the username in mechanisms)
The output should be like this--
say i gave the input username as 01018603, i will be able to get the output as--
the example belongs to one AuthMechanism ie QnA
if [ sessionID_No_Got_from_the_username_list == QnA sessionID ]; then Any advice on the script or help will be very greatful.
print all the data inside that sessionID that relates to user with timestamp
print this also
Handle_NSPAdvice:: Handling NSPAdvice for mechanism  with time stamp.
(This post was edited by namishtiwari on Jun 12, 2009, 3:54 AM)