LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2003, 01:11 PM   #1
digitalgravy
Member
 
Registered: Nov 2003
Posts: 86

Rep: Reputation: 15
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
 
Old 12-10-2003, 01:25 PM   #2
Hcman
Member
 
Registered: Jan 2003
Location: Holland
Distribution: OpenBSD 3.6 - Arch Linux 0.7
Posts: 210

Rep: Reputation: 30
cat

See man cat for help.

HC
 
Old 12-10-2003, 01:46 PM   #3
digitalgravy
Member
 
Registered: Nov 2003
Posts: 86

Original Poster
Rep: Reputation: 15
thanks

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

Im learning something new everyday!

Thanks Again HC
 
Old 12-10-2003, 02:26 PM   #4
Hcman
Member
 
Registered: Jan 2003
Location: Holland
Distribution: OpenBSD 3.6 - Arch Linux 0.7
Posts: 210

Rep: Reputation: 30
Glad I could help :-)

HC
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Merging ,pdf files satimis Linux - General 6 11-21-2007 08:31 PM
merging mpg files karhu Linux - Software 4 07-28-2005 05:25 AM
merging movie files ZaphyR Linux - Software 4 09-05-2004 08:26 AM
merging files using perl pantera Programming 1 06-03-2004 12:56 PM
Can log files be time stamped? (such as FTP login and transfer log files) bripage Linux - Networking 6 08-08-2002 10:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration