Changing Access_log Filename In Logrotate
Aug 4, 2008
how to rename access logs according to Week Number?
I notice that 1&1 do this, producing a file like "access.log.31.gz".
I'd like the access log to be in this format: access_log_[domain-name]_[Week-Number].gz, or if domain-name is not possible: access_log_[Week-Number].gz
Here's my current logrotate script for access_log:
Code:
/home/default/muro.co.uk/user/logfiles/access_log {
missingok
rotate 8
weekly
postrotate
/bin/kill -USR1 `cat /var/run/httpd.pid`
endscript
}
View 4 Replies
ADVERTISEMENT
Oct 27, 2009
I have 2G access_log file everyday. And the server will freeze a while during log rotate every morning.
So I want to reduce the size of the log file. I see most of the content in the log file are .jpg, .js, .gif. And I don't these log is necessary.
Can I log only php file?
View 3 Replies
View Related
Jul 6, 2008
I am running an apache webserver with PLESK 8.4 and I noticed that the access_log is getting filled everyminute with similar errors.
L/0.9.8b mod_perl/2.0.2 Perl/v5.8.8 (internal dummy connection)"
::1 - - [06/Jul/2008:07:25:19 +0200] "GET / HTTP/1.0" 200 - "-" "Apache/2.2.3 (Red Hat) DAV/2 mod_jk/1.2.15 mod_python/3.2.8 Python/2.4.3 mod_ssl/2.2.3 OpenSSL/0.9.8b mod_perl/2.0.2 Perl/v5.8.8 (internal dummy connection)" ....
View 1 Replies
View Related
Nov 20, 2008
I pasted the contents of a javascript page into a filename on my server.
Now I cant rename, download or delete the file,
View 4 Replies
View Related
Jul 27, 2007
I am setting up Expires headers for my site. The site allows users to upload photos of themselves. The photos are stored as <user id number>.jpeg. I want these to be cached, but updated when the user uploads a new photo. From what I understand, new browsers use ETags to make sure this happens (since if they upload a new file, the inode and/or mtime will change). However for older browsers, I plan to add ?file-mtime to the end of the file name. This should allow caching but it will change when the user uploads a new image. Will the cause any technical problems with caches that would not be a problem if I changed the filename to be user_id.mtime.jpeg when the user uploads the file? The trade-off is that if I just append ?file-mtime to the end of the filename, I don't have to track these images in a database or use file globs (cpu-expensive for large directories) to find the filename to output.
View 3 Replies
View Related
Apr 8, 2008
how to copy all filename with the word 'index' from src to dest?
This include index file within directories as well..
this doesn't seem to work. It only copy index.html in public_html .. and stop there..
Quote:
cp -Rf /backup/userA/public_html/*index* /home/userA/public_html/
View 8 Replies
View Related
Jun 22, 2009
This is our logrotate definition for Apache's logs folder:
Code:
/var/log/httpd/*log {
rotate 5
missingok
notifempty
size=100M
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true
endscript
}
Yet, while it does truncate logs in five, we seem to have fairly different sizes: 182M, 168M, 968M (!)... It seems to be ignoring "size=100M",
View 2 Replies
View Related
Oct 25, 2009
is it possible to disable log rotate? I can't seem to find the cron under my weeklys or dailys nor monthlys unless it's named "mad-db" but is there a way to make it say yearly? or just disable it all together? I say this because the script I use has a function already to clear the logs and when log rotate runs it kills all processes going by the script
View 8 Replies
View Related
Jul 21, 2008
In /etc/logrotate.conf
I have the following:
Quote:
daily
rotate 7
create
compress
include /etc/logrotate.d
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 4
}
How can I keep my logs until the 18th of every month?
Would:
monthly
rotate 18
View 6 Replies
View Related
Jun 19, 2007
I recently purchased a new dedicated server, since I have had this server (8 days) I have being receiving the following email:
Quote:
/etc/cron.daily/logrotate:
error: error accessing /var/log/httpd: No such file or directory
error: httpd:1 glob failed for /var/log/httpd/*log
View 9 Replies
View Related
Jun 30, 2008
i have a little issue with the domlogs folder.
I should empty this files but i don't know if it is possible to do without reboot Apache.
a) how can i setup logrotate to rotate domlogs?
And if it is possible:
b) how can i setup logrotate to rotate domlogs without restart apache?
I have already setup whm-> tweak settings to delete old domain's access logs after stats run and the whm is setup to generate statistics every 20 hours.
But every day the site is slowly because the domlogs are too big.
View 6 Replies
View Related
Aug 1, 2014
I want to create logrotate in logrotate.d for modsecurity log.
I find following code, but it don't works.
Code:
/var/log/modsec_audit.log {
rotate 7
compress
missingok
notifempty
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}
View 1 Replies
View Related
Nov 1, 2009
i need information about this option 'Check /etc/cron.daily/logrotate for /tmp noexec workaround', there are in the server check, of the csf test, someone can explain to me about this function? should do it?
the actually state is 'warning'.
View 12 Replies
View Related
Jul 6, 2014
Plesk 12 on Centos 6.5
I added the following to my /etc/logrotate.conf
/var/log/modsec_audit.log {
missingok
daily
rotate 4
compress
}
I'm not exactly sure if the above is the correct syntax, but the result was that two days later my current modsec_audit.log was Gzipped and a new modsec_audit.log was created.
The problem is that nothing was logged to this new file.
From the Plesk 12 control panel I turned off mod security and then turned it back on again and hey presto, the new logfile started to log events.
This leaves the problem of why nothing was recorded when the file was created.
View 2 Replies
View Related
Sep 25, 2007
Everytime I deleted an Ip set up by WHM, this one nameserver always comes back and deletes one that I already set up.
69.50.221.151 NS19.NSHOSTER.NET
No matter what I change it to, that NS19.NSHOSTER.net keeps overwriting an NS that i set. What's wrong? When i try to delete with WHM
Quote:
Removing Nameserver Ip 69.50.221.151
Sorry, the nameserver ip 69.50.221.151 cannot be removing since it is still registered with an ICANN register.
I can only go through ssh.
View 1 Replies
View Related
May 26, 2007
My Linux box has a set IP address that never changes. However, I am switching my server from one collocation to another so in the process my IP address will be different.
The last time I switched my box, I had my ISP admin change the IP address within my linux box, but now that might not be an option.
So in linux, CentOS 4.1, how do I change the IP address on the box?
As much as I can remember, I had to change it in:
/etc/netstart
But I also remember there is another file that needs to be edited within the server to change the IP.
View 1 Replies
View Related
Jul 23, 2008
I have been with this hosting company for almost five years now and until today the service has been excellent. I am having massive ftp issues. I have 41 different domains that I run for a variety of projects. Needless to say I keep each website in a different folder. I just tried to switch one of my blogs from blogger to wordpress. Blogger won't let me have my domain back and keeps blocking it with a 404 error. But that is a separate issue. I tried using one of my extra domains and pointing it at my new blog folder. But it keeps bouncing back to my root directory. I contacted 1and1 and they reset the server, but now they are blaming me for the issue. I can access the blog through it's subdirectory but I can't post the blog there.
Anyways, I am not ready to move over all of my websites, but I do want to move my blog to a new host. I am mainly hoping that I can escape 1and1 and blogger in one move if I change the host of this one website. It's funny I have been happy for years and recommended them to friends, but now I am very disappointed. Can someone recomend a reliable host? I am looking for one with a cheap lowend package to start off. If I end up staying I will need a lot of bandwidth as I have a podcast that had a lot of traffic. Basically, there are so many companies that I just can't tell which ones are reliable. That's my main concern. Also I use SQL a lot. Thanks!
View 8 Replies
View Related
Jun 26, 2009
I'm setting up my dns records for a backup mailserver and setting up another ns record in case of server / datacentre problems.
My question is, do I need to specify the ip address of the external hostname and the external namserver in the local dns record?
e.g mail.mydomaim.com in A **.***.**.**
then add mail.outside-domain.com in A **.***.**.**.
I dont think its necessary but want to double check.
View 2 Replies
View Related
Oct 25, 2009
I'm changing my webhost after getting screwed around with countless downtimes and now their own site is completely down.
I'm looking for a new host, and had been looking at alot of review sites. After looking at a few of them, found that they were obviously fakes with almost 100% good reviews for some hosts, completely dissing some other hosts, and the complete opposite on some other sites.
Looking for recommendations for your own host, do state your site too so I can try out the response.
Criteria
excellent uptime
responsive support + live support chat
h-sphere preferred, but not a must have (I like having subdomains in directories at the same level as domains)
does not ridiculously overload their servers (well, who can tell?)
good site response time
budget at 10usd per month
allows many domains/sites, no need for super high bandwidth as I just host many small sites
PHP with .htaccess access + imagemagick/gd
View 11 Replies
View Related
Jan 29, 2009
I currently work for a small company that has a website hosted by a local hosting company. We have not been happy with them and are planning on switching hosts. Now I know that you are suppose to update your name servers for your domain name to point to your web host's name servers. Problem is I don't know how to get access to do this (all of this stuff was setup many years ago way before I got here).
Using whois I see our domain registrar is DomainBank.com but I have no account information to log in and change our name servers. How do I go about doing this? Is it possible our existing host did all of this originally and they have an account with DomainBank instead?
View 8 Replies
View Related
Jun 5, 2009
Hostingzoom Is changing!
we are Hostingzoom's customer from 2005! we had a payment due on a service and hostingzoom suspended all of our services! how come it's possible? to all users I want to let you know to take care about this changes .. hostingzoom was the best but it looks like that it's no more like before! maybe the company is sold!
Take Care About your accounts, have a daily backup of your accounts and do not trust to buy more from them! we lost lots of our clients "about 500", and we face critical problem with what they did to us for $80! and we had problem with our credit card issuer right now! ... HostingZoom is changing take care ..
View 14 Replies
View Related
Sep 30, 2008
I currently have my account with streamline.net (utter crap never use that company). I want to move 2 of my domains off this company and on to another one.
What is the process in doing this and as anyone any good recommendations for hosting companies to use?
View 24 Replies
View Related
Jan 29, 2008
I have IIS on my computer and I want to start using a php driven forum (SMF) on my web site. Before I upload the files I need to check the following settings are on:
the engine directive must be On.
the magic_quotes_sybase directive must be set to Off.
the session.save_path directive must be set to a valid directory, or empty.
the file_uploads directive must be On.
the upload_tmp_dir must be set to a valid directory, or empty.
I cant find anywhere within IIS where these directions maybe found. Can anyone point me in the right direction?
View 2 Replies
View Related
Jul 30, 2008
I have a domain registered with Dotster and my NameServers point to Verio who is my webhost. My MX Records at Verio point to Appriver who handles my email. I'd like to get Verio totally out of the picture and just host my site at Dotster and still keep the email at Appriver. However, I'm not quite sure the order in which to change the various settings.
Do I just change the Name Servers at Doster to point to Dotster instead of Verio and then use Dotster's DNS to point the MX Records to Appriver? Would I then disable the MX Records at Verio? What about propagation of these changes...would I lose email traffic?
Do I need to change the TTL? I'm really not sure about the order of the steps.
View 2 Replies
View Related
Jul 19, 2007
ive been a member of these forums for a few months now, mainly scouring for CSS tips and solutions. However, i've recently purchased Kevin Yanks book; Build Your Own Database Driven Website Using MYSQL and PHP, to work through. Annoyingly i'm having a problem with the initial MySQL setup which i cant seem to find a solution to on these forums or even Google. The book instructs the user to edit the my.ini file by adding the 'old-passwords' command, but no matter what i try i cannot save any additional content to this file. i just get the error... "Cannot create C:/programfiles/mysql/mysql server 5.0/my.ini". I fear im overlooking something very simple here. Has anyone else experienced this? The only thing that comes to mind is that im running Vista, which the book predates.
View 2 Replies
View Related
Aug 27, 2007
to change system date back and forth.
Of course 'date -s' doesn't work on VPS. Using zic and timezones > /etc/localtime could help up to (almost) 24 hours, but dates are out of range.
Some systems can enable something like defying "Time Drift" as on some Xen versions (as shown below), but unfortunately my provider apparently doesn't support it.
# set independent_wallclock
# echo 1 > /proc/sys/xen/independent_wallclock
Is there any other way to change date on a VPS?
View 9 Replies
View Related
May 16, 2007
I'm trying to change the ssh port on one of my servers, I have edited the sshd_config file and ssh_config. Changed the port, then enabled the port on APF. Restarted both APF and SSH.
Tried logging in via the port I specified, would not let me. Tried the default port, logged in fine. Why won’t it change to the port I specify?
View 13 Replies
View Related
May 29, 2007
I am currently on a VPS plan. My usage has become so much I need to switch to a different plan out of a different state. So with the new plan I will have a new IP address. What do I have to do to make the switch?
View 1 Replies
View Related
Mar 29, 2007
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule !^index.php$ index.php [L]
</IfModule>
Hi,
This is my current .htaccess
As you see, it redirect all pages to index.php except index.php itsel
How do I modify it so that the exception is not just index.php but also channel.php or index3.php?
View 9 Replies
View Related