Hi, I grep for the username and i found the data in the log file and found out which session id it belongs, i will give you a sample of the output--
Tue May 19 23:46:29.946 2009 Morocco Standard Time INFO: pid 2172 t +id 688: 17: 10088781: ArAuthFrameworkImpl::doPreAuth::1:10088781:: Au +thentication mechanism returned [0] for AuthIdentity [01402629;ARCARD +] Tue May 19 23:47:14.165 2009 Morocco Standard Time INFO: pid 2172 t +id 3352: 17: 10088815: ArAuthFrameworkImpl::doPostAuth::1:10088815:: +Authentication mechanism returned [1] for AuthIdentity [01402629]
here 10088781,10088815 are the session id's related to this user id. i used this code to find it out
#!/usr/bin/perl -w $username = "01402629"; open(VALUE, "< arcotwebfort_20May09_00_03_55.log"); @stock = <VALUE>; @matches = (grep(/$username/, @stock)); print @matches;
i need some help in finding out this session-id is related to what mechanism, as i mentioned earlier there are OTPAuthentication,QnA and UPauth,so beased on the session-id i need to print which mechanism he belongs and what did he do in that with time stamps. Sory to bother you but u can copy that log file in some etxt file and wrapped the data. Thanks NT

In reply to Re^4: perl script by namishtiwari
in thread perl script by namishtiwari

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.