LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   merging log files help please (https://www.linuxquestions.org/questions/linux-newbie-8/merging-log-files-help-please-124642/)

digitalgravy 12-10-2003 01:11 PM

merging log files help please
 
I have a directory of my error log files from apache.

I want to merge all of these files into one log file.

There are so few errors from my site that I dont want to have an error log from every day as most of them are empty.

Is there a shell command to extract all entries from all of the logs and output it to one log file.

Im sure there is a way to do this. The only thing I fould on google was a link to a webmasterworld.com article that would explain how to do this but they wanted $80 to subscribe.

These logs come from my hosting company so I can not modify apache to only keep one log file for errors.

Any help would be greatly appreciated!

Thanks in advance

Hcman 12-10-2003 01:25 PM

cat

See man cat for help.

HC

digitalgravy 12-10-2003 01:46 PM

thanks
 
Thanks, I knew Id get a quick reply. It worked great.

Im learning something new everyday!

Thanks Again HC

Hcman 12-10-2003 02:26 PM

Glad I could help :-)

HC


All times are GMT -5. The time now is 11:10 PM.