Help to grep string in log files


 
Thread Tools Search this Thread
Top Forums Programming Help to grep string in log files
# 1  
Old 10-20-2010
Help to grep string in log files

hello guys..,
i have some problem with grepping strings in log files..
so..,i need an java logic on how to grep srtings in log files
the output must be in gui..,
please help me ..
regards
raghuraipurSmilie
# 2  
Old 10-20-2010
We need a few more details. Regular expressions have a lot of similar features.

What EXACTLY are you trying to find?
What do the input file look like -samples are welcome.

Thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to grep for a string in log files generated in last 15 minutes.

Dear Guru's I've a requirment to grep for a string in series of log files that are getting generated almost every minute. I'm looking to schedule a script every 15 mountes,in order to check if the error string has been generated in any of the log files generated in last 15 minutes. Please... (3 Replies)
Discussion started by: rajivatnova
3 Replies

2. Shell Programming and Scripting

Grep string in files and list file names that contain the string

Hi, I have a list of zipped files. I want to grep for a string in all files and get a list of file names that contain the string. But without unzipping them before that, more like using something like gzcat. My OS is: SunOS test 5.10 Generic_142900-13 sun4u sparc SUNW,SPARC-Enterprise (8 Replies)
Discussion started by: apenkov
8 Replies

3. Shell Programming and Scripting

need help in Grep a string in the log file

logfile="/var/tmp.log" output=$(grep "ERROR" $logfile) if then echo "exceptions logged , please check /var/tmp.log for more details" |\ mail -s "exceptions logged , please check /var/tmp.log on for more details" $DL else echo "not found" fi Somehow its not working as... (5 Replies)
Discussion started by: ajothi
5 Replies

4. Shell Programming and Scripting

grep exact string from files and write to filename when string present in file

I am attempting to grep an exact string from a series of files within a directory and append that output to the filename when it is present in the file. I've been after this all day with no luck. Thanks for your help in advance :wall:. (4 Replies)
Discussion started by: JC_1
4 Replies

5. UNIX for Dummies Questions & Answers

Using grep to find files that don't contain a string

Hi all, I am still learning my way around unix commands and I have the following question. I have a website and I want to search for all the html pages that don't contain a certain js file. The file I am searching for is located under /topfolder/js/rules.js . So I assume in my grep search I... (5 Replies)
Discussion started by: SyphaX
5 Replies

6. Shell Programming and Scripting

how to grep string from hourly basis files

dear all, pls help on this script.. i have many files which will be created every mins in particular directory. i want to grep a particular string from only for unique hour files. from the below code i want to grep a string from only 9th hour files . Ex files: -rw-r--r-- 1 root ... (5 Replies)
Discussion started by: steve2216
5 Replies

7. Shell Programming and Scripting

grep a string from 2 text files

How to grep a string in two different files, I am having the following scenario TextFile1 Date (dd/mm)Time Server IP Error Code =========================================================================== 10/04/2008 10:10 ServerA xxx.xxx.xxx.xxx ... (15 Replies)
Discussion started by: karthikn7974
15 Replies

8. Shell Programming and Scripting

how to grep for string in log file

Hi Im running a backup scriptwhich creates a log file how do grep for the string in the logfile so the backup script can continue to next stage otherwise it will exit i.e 12:32:53 INF - Client completed sending data for backup 12:33:02 INF - Backup by root on client lonbob04bak using... (4 Replies)
Discussion started by: eb222
4 Replies

9. Solaris

grep a string on all files in the subdirectories

Hi all, I would want to find a string 'abc' on all files which is located under a directory. But inside the directory there are subdirectories, so how can I find whether 'abc' exists on all files in the subsequent subdirectories? Thanks. (4 Replies)
Discussion started by: *Jess*
4 Replies
Login or Register to Ask a Question