Welcome
ankush_mehra ,
Can you tell us more about the directory stricture that the log files will be written to, eg:-
- Are they /logs/Monday, /logs/Tuesday etc. or /logs/2014-09-09 style. If so, what format?
- Are the logs single files for the day or one for each job (named for the job, process id, timestamp etc.) ?
- Are the contents of the log files (however organised) consistent so you can search for a particular string or expression?
- Are the log files archived, overwritten or just forever growing in number?
A good response also depends on what you have tried so far and what you are comfortable with. It would be better if we can work out what you know so that you can maintain any solution, rather than us just giving something that works in a test situation, but then is hard for you to adapt for actively using it.
It would help us all if you could consider these questions:-
- What have you tried so far?
- What output/errors do you get and how far off are you?
- Can you supply some sample input and output required? (wrapped in CODE tags please)
- What OS and version are you using?
- What are your preferred tools? (C, shell, perl, awk, etc.)
- What logical process have you considered? (to help steer us to follow what you are trying to achieve)
Most importantly,
What have you tried so far?
There are probably many ways to achieve most tasks, so giving us an idea of your style and thoughts will help us guide you to an answer most suitable to you so you can adjust it to suit your needs in future.
We're all here to learn and getting the relevant information will help us all.
Kind regards,
Robin