![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rm: Unable to remove directory /mnt/users/test/logs/: File exists | solitare123 | UNIX for Dummies Questions & Answers | 4 | 08-12-2008 02:14 PM |
| Find username of user running the script | garric | Shell Programming and Scripting | 1 | 06-10-2008 12:44 AM |
| Process launched by user who logs out, continue running ? | Browser_ice | UNIX for Dummies Questions & Answers | 2 | 08-08-2006 06:43 AM |
| How to prevent root users from editing files (logs) | vehchi | UNIX for Dummies Questions & Answers | 4 | 12-06-2005 03:29 PM |
| su - user... how to find out the list of users and their passwords.. | yls177 | UNIX for Dummies Questions & Answers | 2 | 11-13-2002 04:07 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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.. |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
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. |
|
#3
|
||||
|
||||
|
You can just grep the output of tail:
Code:
USER=john RHOST=in.com tail -f logs/application.log | grep "user $USER" |
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
||||
|
||||
|
Yes. .
|
||||
| Google The UNIX and Linux Forums |