Huge Apache Logs

Feb 3, 2008

I'm sure this question has been asked before, but I'm looking for a nice and simply way of breaking up log files into smaller chunks.

I've been running apache2 on a VPS for the past few months and one of the access.log files is now 700mb big... bit of a waste of space. I'm currently just doing:

CustomLog /var/www/logs/domain.com/access.log combined
ErrorLog /var/www/logs/domain.com/error.log

In my apache config.

Is there any easy way of telling apache to just keep the last week or months worth of logs?

View 7 Replies


ADVERTISEMENT

Apache Logs Error

May 29, 2009

since i take server i got a lot of errors on my apche logs when i post this command on my shell:-

Code:
tail -f /usr/local/apache/logs/error_log
will coming a lot & fast error and not stop until i stop the apache:-

Code:
[Fri May 29 11:37:52 2009] [error] [client 77.167.228.165] File does not exist: /usr/local/apache/htdocs/40E80014354C4C30365047322020202020202020202020206C0000004D6600000001760000005CEB000530E1E8EEF4
[Fri May 29 11:37:52 2009] [error] [client 89.215.36.123] File does not exist: /usr/local/apache/htdocs/40E80014202020202020465032443031324B3842364842456C000000446600000001760000005CEB000530797F848A
[Fri May 29 11:37:52 2009] [error] [client 93.185.179.132] File does not exist: /usr/local/apache/htdocs/40E800006C000001596600000001760000005CEB0005307587A8B4

every thing is ok but i need to remove this error and i can't under stand from where comming ! "/usr/local/apache/htdocs"

View 4 Replies View Related

Configure Web Logs In Apache

Apr 26, 2008

I use linux server with Cpanel control panel.

default default apache logs folder is in /usr/local/apache/logs/error_log

I want to monitor errors . How can I have an error log file for each individual domain?

View 3 Replies View Related

Extract IP Addresses From Apache Logs

Sep 18, 2007

How can I extract a list of visitor ip addresses from apache logs for a cpanel account?

are there any tools that will do a whois lookup for all the IP's?

View 2 Replies View Related

Worrying Apache Logs Showing 401s

Jun 3, 2008

I've just taken a look at the raw apache logs on my cpanel machine here:-

/usr/local/cpanel/logs/access_log

And there are many hundreds of these:-

127.0.0.1 - - [06/03/2008:21:55:22 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:21:55:22 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:03:42 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:03:42 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:12:02 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:12:02 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:20:22 -0000] "GET / HTTP/1." 401 0 "" ""
127.0.0.1 - - [06/03/2008:22:20:22 -0000] "GET / HTTP/1." 401 0 "" ""

what is happening to my server to generate these log entries?

View 4 Replies View Related

Apache Logs - Viewing POST Data

Mar 20, 2007

I suspect that somebody is trying to do SQL injections on one of my websites. Is the POST information that is send using forms logged anywhere so I can read it in the same way I can read the GET requests in Apache logs?

View 6 Replies View Related

Apache :: Preferred Method For Centralizing Logs

Mar 23, 2015

Which method do you prefer for centralizing your logs: file monitoring or Pipe to Logger?

View 4 Replies View Related

Apache :: Unable To Open Logs On Restart

Jan 19, 2015

Sometimes when I try to restart Apache 2.4 using the supplied ApacheMonitor.exe I get this error. Then, I have to "taskkill /f /im httpd.exe" or wait like 30 sec before trying to start Apache again.

View 1 Replies View Related

Apache :: How To Create Rotated Logs For Every Periodic Time

Aug 26, 2014

I have configure my Apache to create rotated logs for every periodic time. It worked fine with my local PC, but when it is being configured on to a server system, the actual error.log file is not being update, only the rotated logs are created. If i remove the Error Log command from httpd.conf for Error Log Rotation, again it works fine as usual.

View 1 Replies View Related

Plesk 11.x / Linux :: Disable Apache Access Logs

Sep 27, 2014

I need to disable apache access logs. I commented out the access log path in /etc/httpd/conf/httpd.conf and restarted the server but it's still logging access.

View 3 Replies View Related

Apache Logs :: Directory Index Forbidden By Options Directive

Dec 19, 2008

i have apache 2 and centos with plesk . when i see my apache error log it shows me :
[Fri Dec 19 05:56:35 2008] [error] [client ::1] Directory index forbidden by Options directive: /var/
www/html/

View 1 Replies View Related

How To Configure Apache To Update Access Logs Files In Real Time

Jul 19, 2014

I'm trying to configure an custom access_log file for an custom file called "extra.php"

How I can make an log file that's log only "extra.php" ....

View 1 Replies View Related

How To Configure Apache Logs For Virtual Host (copy Log File To Homedir Of User )

Jul 19, 2014

I'm trying to configure Apache logs to split logs files for every virtual host on the server

for example: {site1 .com} => copy access_log to /home/site1/public_html/logs {site2 .com} => copy access_log to /home/site2/public_html/logs .. {site3 .com} => copy access_log to /home/site3/public_html/logs

i want to also to make sure is the logs files updated in the real time

operating system is CentOs6, with Apache and cPanel

View 1 Replies View Related

Access Logs And Errors Logs

Jul 25, 2007

is it possiable to delete these files in the server access_logs and errors_logs

View 1 Replies View Related

Huge File To Transfer

Jul 8, 2009

Just moved to a new server, and of course, 10GB doesn't seem that large for a server but for some reason wget is not able to handle the transfer of that backup for me... it transfers about 1MB then tells me "successful transfer..."

The old server is using cPanel, and the new server is just a plain old server that I haven't loaded up yet.

how I can get this full backup over to the new server?

View 11 Replies View Related

Apache2 Error Log Huge

May 15, 2008

The error logs on my web server keep growing to stupidly large sizes within a couple of weeks.

when i look through the error logs it seems to be showing exactly the same line but just from diffferent Ip addresses. the line is as follows

[Sun May 11 07:11:41 2008] [error] [client ###.###.###.###] File does not exist: /var/www/phpmyadmin/tracker

View 5 Replies View Related

Mod_security .. Huge Database Log

Mar 24, 2008

I've been using mod_security for a long time, but apparently I accidentally enabled some kind of log or something that uses mysql. I don't remember it being there before.. but the point is; the database is like 145100k!

Which is HUGE for a database..

How can I disable this stupid log?

View 2 Replies View Related

Huge INBOX File

Jun 23, 2008

I had several user accounts that were pushing their quota. I was digging around in SSH and found that the INBOX file in /home/username/mail was huge even though the user does not keep messages on the server. I deleted this file to free up space and all seems file. A couple seconds later I did check and the file was recreated with new incoming mail.

My question is how do I keep this file from growing out of control? One of the users I had for almost 2 years had an INBOX file of almost 2GB!

Server Details:
VPS running WHM 11.23.2 cPanel 11.23.3-R25623
Redhat 9

View 5 Replies View Related

Huge Site Scalability

Jun 11, 2008

I'm just curious as to what kind of things the huge sites--Youtube, Myspace, etc.--are doing to try to keep scalable. What sites do you guys just hate for failing in this regard, and perhaps most importantly, what are some ways we can prevent downtime?

View 4 Replies View Related

What Is The Best For Huge Bandwidth Usage

Oct 26, 2008

I want a new dedicated server that has +3TB bandwidth for the best price and quality

View 14 Replies View Related

Where Do You Go To Host Huge Websites

Oct 30, 2007

where do you go host HUGE websites, youtube like sites, with HUGE bandwidth usage?

I don't believe people go on host like rackspace, with their 150GB / month packages, unless they want to pay an absurd amount of $$.... so where do these guys go to host? What kind of hosts are these?

View 9 Replies View Related

Logwatch Huge Report

Oct 29, 2007

I have been receivig a huge logwatch report, seems that logwatch is not parsing the /var/log/secure file, but sending the log entries instead of any resume of it. I got thousands of lines like

Cp-Wrap: Pushing "47 GETDISKUSED pvargas lights.com.co" to '/usr/local/cpanel/bin/eximadmin' for UID: 47 : 25 Time(s)
Cp-Wrap: Pushing "47 GETDISKUSED r.perez konecrans.com" to '/usr/local/cpanel/bin/eximadmin' for UID: 47 : 69 Time(s)
Cp-Wrap: Pushing "47 GETDISKUSED r.rodriguez konecrans.com" to '/usr/local/cpanel/bin/eximadmin' for UID: 47 : 114 Time(s)

I have upgraded to the most recent version of Logwatch with default configuration. Any ideas on what could be wrong?

View 4 Replies View Related

MySQL With Huge Database

Nov 26, 2007

ways to improve the database performance in the situation when I have to modify a large table (several million rows), by e.g. adding a column. Currently this would take several hours which is too slow. The bottleneck is disk I/O. I am considering either partitioning the table over several innodb files on several disks, or going to a RAID-5 or RAID-10, it this will give me better write performance.

The database is 130GB large, and the problem table (which I make period changes to) is the largest table on the server. I cannot have downtime of 3 hours each time I make a change and adding blank fields (to be used later, when a new field is needed) is not an option.

Each time I add a column, the cpu goes into high (80%) io wait state for about 3 hours.

I have a hack which would allow me to split the large table into multiple smaller tables based on some criteria (for example, forumID or such). Here are a couple of things but would like to know which is best, and am open to new ideas. The ideas so far:

1. Split the table into 3 or 5 smaller tables each on it's own disk. The disk IO would then not be so bad, and it might only take 1 hour to perform the table change. But this might not work because the changes to the database (as in adding a column) might be serial, meaning only 1 disk is being written to at a time. (Then again, maybe it will work if I launch 3 different scripts, one to update each table at once).

2. Do RAID 5 or 10, and have 3 or 5 disks. This again might not help at all because of the above issue with MySQL writing serially.

I am using latest MySQL 5.0.45 with InnoDB engine on Debian etch Linux

View 4 Replies View Related

Need Huge Space & Bandwidth Hostgator

Nov 6, 2009

i need around 300+GB bandwidth, 20+GB space with 2-5MB of sql database. is it suggestible to take hostgator starting plan (hatchling)?

is hostgator worth that?

View 14 Replies View Related

Huge Memory Usage By One Domain

Dec 11, 2008

I have one domain where is hosted a lot of subdomains,and for some reason it constantly have 4% cpu usage and 33% mem usage.Since that domain is inactive,could be that usage beacuse of addon domains but it simply not presented correctly in whm?

View 4 Replies View Related

What Is The Meaning Huge Bandwidth.log File

Jan 24, 2008

I had 18GB bandwidth.log file at /etc/log/ directory? What is the meaning of bandwidth.log file? And what may be reason increasing file size to 18GB, especially in one night.

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved