Grep command to check in logs to get specific data.
Suppose you have particular date and time then you can use grep command and get the require data by using below command.
grep "08/22/13 15:47:09" filename;
Suppose if you don't have date and time you have the user name then you can use below command and you can get the result in name.txt
grep username filename;>> name.txt
name* you can give anyname you want.
filename * is log file name .
No comments:
Post a Comment