How to find one partucular user logs when there are lots of users running on it

On my application there are lots of users are doing there work or tasks? ...In my SSH or in 'Putty' i am observing logs?
Hot to observe one particular 'user' logs.. even through there are lots of users working on it?

For EX: i am log in with use rid:nikhil@in.com. another one log in with john@in.com another one with another uid,pwd... etc i am doing my business on it like that another one doing their business? But under logs the contents is comming continuosly like mixed with all other users .... here i want to see only contents of login with my useid here it is nikhil@in.com.

my commands for seeing logs are here : tail -f logs/application.log

logs is dir
application.log is logs file.

it would be appreciated if any one help in this regard..

well it would depend, on how the data is logged.

You might be having the user name logged in the log file. Why don;t you grep the log file on that particular user.

You can just grep the output of tail:

USER=john
RHOST=in.com
tail -f logs/application.log | grep "user $USER"

The other thing you can do is install pam_script and set up a "onsessionopen" and "onsessionclose" script which will generate such a logfile, and is guaranteed to run (unless sshd is killed with -9).

by above grep command we are getting the lines which contains that particular user id right ?

Yes. .