LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   searching log files in linux (https://www.linuxquestions.org/questions/linux-newbie-8/searching-log-files-in-linux-678065/)

ramanika 10-21-2008 10:17 AM

searching log files in linux
 
Hi all,

I am a linux newbie.

I have my weblogic cluster running in linux enviornment.

I want to search for the cluster log files for the following - search for the logged information that contains exception and or error. I tried grep command but it shows only part of the logged information but not the complete sentence. Also since there are lot of log files and since they are rolling logs, it is hard for me to open each log file and do a search manually.

Thus I would like to know the linux command that shows the entire logged information that contains a search word without me having to open each log file and search.

Youe input is highly appreciated.

Thanks in advance.

allez 10-21-2008 10:40 AM

Please show here the exact command that you have used, its output, and tell us why it's haven't made you happy. ;)
Seriously, grep/egrep is just what you need.

hvc123 10-21-2008 11:56 AM

personally i use a php script called "phplogcon" stick it on a web server and log into it. you can then add any log (text) file and output the results. you can search and whe nyou mouse hover on an entry it opens a zoom box so u can read it.
very good script google it, works a treat


All times are GMT -5. The time now is 11:29 AM.