Any utility or tool to check logs


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Any utility or tool to check logs
# 1  
Old 09-09-2014
Any utility or tool to check logs

HI,
In our project daily we need to check for some errors in around 45-50 folders. Please let me know if there is any utility tool using which 1 can check each folder and file for error.
Use: Monday we are checking if there were any error in files generated on Monday
Tuesday to Wednesday we need to check if there are any files created on previous day with the error.
Please let me know if there is any tool or utility in unix to check this that we can run daily to extract the error data

Last edited by rbatte1; 09-09-2014 at 01:10 PM.. Reason: Spellings
# 2  
Old 09-09-2014
Hi,

What generates the errors and how do you check the files/folders just now?

Regards

Dave
# 3  
Old 09-09-2014
Hi Dave,

our process are running and they are developed in such manner that they create errorfile.txt in error folder of that process.
I can write shell script to monitor each and every folder.but wanted to know if there is any tool using which we can check this instead of writing script.

Please let me know if my requirement is not clear
# 4  
Old 09-09-2014
Hi Ankush,

It seems that there may be a requirement to write your own scripts here, in general all my scripts log to a single error log, which is generated one per day so it is easy for me to see what failed and when.

But if each "process" generates an "errorfile.txt" in a different location, then you will I fear have to write a specifi script to check for that.

Regards

Dave
# 5  
Old 09-09-2014
Thanks Dave.
Will write script... there is no utility or tool using which we can check that.
# 6  
Old 09-09-2014
grep -c regex folder ?
# 7  
Old 09-09-2014
Hi,

As I said, I have a single log file which all my scripts log to. So I don't have this issue, perhaps rather than write a script that would have to be continually edited - you may want to look at implementing a more considered methodology.

Regards

Dave
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need to check logs

I have nearly 25+ tail commands which we need to verify the logs if there is any errors on current or previous date with time. I need this to be automate and send email to me with details. Please help me on this. (5 Replies)
Discussion started by: Nasir HussainSM
5 Replies

2. Shell Programming and Scripting

Wich tool for check that two system have the same configuration

Hello , On a couple of system I have to check that systems have the same configuration. This system are part of manual cluster but when application are going to switch from one side to another side I would like to be sure I am not going to experience incidents. It is why I wonder if on the web... (2 Replies)
Discussion started by: xavier38450
2 Replies

3. Shell Programming and Scripting

Script to check logs

I have 5 log files under different directores . say for eg abc under /home/dir1 , xyz under home/dir2 . is there a script that i can run from say /home that searchers all these files for string or combination of strings and write to a file eg search file by timestamp|keyword o/p in a file (6 Replies)
Discussion started by: Nevergivup
6 Replies

4. Solaris

logs to check

Hi all i want to know what are the logs we need to check when the server is down and how to resolve to make server UP? please help me with this (8 Replies)
Discussion started by: vkav
8 Replies

5. UNIX for Dummies Questions & Answers

which is the best online tool to analyze vmstat logs

hi all which is best online tool to analyze the vmstat logs to measure the cpu performance (2 Replies)
Discussion started by: din_annauniv
2 Replies

6. Shell Programming and Scripting

How to check whether logs are updating or not?

how to check whether logs are updating or not in unix is there any built in command or function ? (1 Reply)
Discussion started by: mail2sant
1 Replies

7. UNIX for Dummies Questions & Answers

check disk utility

Is there a UNIX check hard disk utility similar to the DOS utility chkdsk ? If there is one can it fix hard disk problems like checkdsk /f can with a DOS system? Where can I find these commands? (1 Reply)
Discussion started by: hatcity
1 Replies

8. Programming

How to write a tool or utility in C/Tuxedo?

Hi, I have a hard time to think of writing a tool or call its an API utility in order to migrate the data from an old-system (DB2) to a new-system (Oracle). I never do this before. There are many records in the old database DB2. I can't just map each of them to the new database by manually. ... (1 Reply)
Discussion started by: tux-denle
1 Replies
Login or Register to Ask a Question