Server :: Logrotate Rotating Daily When Should Rotate Weekly?

Mar 18, 2010

I have an Ubuntu server, and I have a special script on logrotate.d to rotate the samba_audit logs:

/var/log/auditsamba/auditoria.log {
weekly
rotate 12
missingok

[code]....

View 14 Replies


ADVERTISEMENT

General :: Logrotate Not Rotating Files With Date Extension?

Oct 25, 2010

I am trying to configure logrotate on APP/DB servers.As per my backup policy,logs will compress in daily basis and and will be moved to a Central storage device.

My tomcat generate several application logs with date extension as well as .log extension.For eg app.log,app.log.2010-10-23-14,catalina.out,catalina.2010-10-25.log etc.

Currently my tomcat logrotation /etc/logrote.d/
#cat /etc/logroate.d/tomcat/
/usr/local/tomcat/logs/*log {

[code]....

But its rotating logs only with .log extension..ie app.log.2010-10-23-14 (with date extension) is not rotating.If i put "*" instead of "*log",its rotating all files including rotated files. How can i rotate files which is having date extension.Also i dont want to keep rotated logs for more than 3 days.

View 1 Replies View Related

General :: Logrotate - Purpose Of Rotate And Postrotate?

Jul 10, 2010

I have been trying out in learning with logrotate command and logrotate configuration file )logrotate.conf custom logfile for an process is 'test.log'

Code:

#cat /etc/logrotate.d/test
/var/log/test.log {
rotate 4

[code]....

whenever the log file (test.log) exceeds 100M a new file will be created with the file name as test.'date'.'gz'(new file is created with a current date and in a compressed format of gz) and also with permission mentioned above). I really dont know what is the role of rotate( will this be carried on only for next 4times i mean upto 400MB; (4times*file reaches 100MB)? and also what could be the purpose of postrotate?

View 5 Replies View Related

Software :: Logrotate.conf Settings Global / Apply To What Is In Logrotate.d/

Jan 18, 2011

Is the logrotate.conf settings global/apply to what is in logrotate.d/? I have olddir /var/log/old_logs in logrotate.conf but logrotate is not placing old rsyslogs in /var/log/old_logs for logrotate.d/rsyslog

View 5 Replies View Related

General :: Weekly Report For Server Setup?

Nov 4, 2010

I have setup a cluster.Which is basically a few Virtual Machines running and the applications running in them which are accessible on internet. He has asked me to send him a weekly report of this work. I am sys admin guy who understands ssh,telnet,ftp,tftp,TCP I am not able to understand what should I write in report.Because all the servers are perfectly running and applications are also running on top of them and I am done with this.So basically from my part I do not have any ssh or ftp to write in a report like this.Can some one give me a link if there is some sample report that I should send.I am not able to understand what do I need to Google for the same.

View 8 Replies View Related

Server :: Weekly Once Resync Is Starting Itself In RAID1

Jul 25, 2011

how can I stop resyncing permenently & how can I check whether the normal sata HDDs can support RAID before/after buying HDDs. Because on every saturday or sunday resync is starting itself even there is no entry about resncing in crontab. But if I run "cat /proc/mdstat" it is showing RAID1 is perfect. see the below output

#cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 hdb1[1] hda1[0]
513984 blocks [2/2] [UU]

[code]....

View 5 Replies View Related

Server :: Logrotate For Logs That Change Filenames

Nov 26, 2010

Say that a certain server process generates log files and names them according to the current date; e.g.

server.nov-20.2010.log
server.nov-21.2010.log
server.nov-22.2010.log
server.nov-23.2010.log

i'd like to have logrotate compress the logs that are older than 3 days. Is this possible with logrotate, or do i just schedule a cron job to bzip everything under the folder older than 3 days?

View 1 Replies View Related

Server :: Ubuntu 6.06 Syslog Crashes After Logrotate?

Aug 23, 2010

I have a postfix mailserver that works fine except for the logrotate.

syslog.conf
mail.* -/var/log/mail.log
logrotate.conf
/var/log/mail.log {

[Code]....

So when cron does the logrotate, there is a new logfile but its empty. After i restart the syslogd it gets back to its normal logging.

What am i missing? All this works with CentOS, why is Ubuntu such a pain...

View 3 Replies View Related

Debian :: Getting Address Of Ftp Server That Has The Latest .iso Of Testing (weekly Build)

Aug 30, 2010

I need address of ftp server that has the latest .iso of Debian testing (weekly build).unfortunately, cdimage.debian.org/cdimage/weekly-builds/ is useless to me as it does NOT support ACTIVE FTP.

View 3 Replies View Related

Debian Configuration :: Cron.daily Not Running Daily On Laptop?

May 31, 2011

I am running on a laptop and cron.daily is set to run at 0625 So I wonder what happens if my machine is not turned on at that time.. At that rate it could also be off for the other periods as well (weekly, monthly) Is there solution that will allow them to run once they are online after the appointed time? using a cron entry that runs every 15 or 5 or 1 minute.

View 2 Replies View Related

Server :: Logrotate For HTTPD Breaks HTTP Sessions

Dec 22, 2010

We started hosting some very large content on our site, and the usage patterns in cacti have revealed that the HTTP sessions through our load-balancers drop off dramatically right at midnight.

The logrotate process runs right at midnight, and issues a reload command through the service tool (CentOS 5.5):
Code:
$ cat /etc/logrotate.d/httpd
/data/websites/logs/*_log /var/log/httpd/*log {
missingok
daily
dateext
compress
rotate 7
sharedscripts
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}

Looking at the init script reveals that the reload section is suppose to trigger a HUP of the httpd process:
Code:
reload() {
echo -n $"Reloading $prog: "
if ! LANG=$HTTPD_LANG $httpd $OPTIONS -t >&/dev/null; then
RETVAL=$?
echo $"not reloading due to configuration syntax error"
failure $"not reloading $httpd due to configuration syntax error"
else
killproc -p ${pidfile} $httpd -HUP
RETVAL=$?
fi
echo
}

In which, Apache should reload it's configuration and start the new logfile without breaking current sessions. However that clearly isn't what is going on. I'm tempted to edit the logrotate script to trigger a HUP directly by cat'ing the PID file directly. Is this normal behavior for Apache when signaled with a HUP?

View 1 Replies View Related

Server :: Rotating Files That End With A Date Stamp?

Oct 10, 2010

how I should go about rotating files that end with a date stamp. This is the configuration I have to rotate my Apache access files, but it is not working:

/var/log/httpd/access_log.* {
compress
daily
rotate 1
copytruncate
missingok
notifempty
}


The files are created with a date extension like the ones below:

[Code]....

View 6 Replies View Related

Server :: Rotating Logs In Squid 2.7 Stable9

Aug 13, 2010

I've installed squid 2.7 stable9 in centos 5.4 x32 bit. I've installed and configured it successfully, its working fine. I want to clear few doubts, for that your kind help is needed. Parallely, I've configured another server using binary rpms with same squid version (2.7 stable9). I found that it creates a /etc/logrotate.d/squid for rotating log files (access.log, cache.log, store.log). Which is properly rotating log files using compress, dateext and size options (i manually added the size option).

But after compiling and installing from source code, its automatically not created. I want to rotate the log files in the same way as it is doing when i install using binary rpms. Below logfile_rotate entry is present in my squid.conf file (in source code installation scenario) logfile_rotate 10 Below logfile_rotate entry is present in my squid.conf file which is commented (in binary rpm installation scenario) #logfile_rotate 10 I want to rotate the log files by size (as I've more than 200 users, these logfiles size increasing very fast, ie. approx 80 MB per hour), with compress and dateext option.

View 3 Replies View Related

Fedora :: Rotate The Pen When Rotate The Screen?

Sep 7, 2009

how can I rotate the pen when I rotate the screen, and I would like to share this knowledge to other people who may have the same problem I had.

I have a tablet fujitsu-siemens t5010 with installed the wacum packages by default, and the pen was working, but couldn't rotate with xsetwacom command.

In Fedora 10, most guides refer to the wacom device as "stylus" which doesn't work on Fedora 11. I run command " $ xinput list " and I found the line

"PnP Device (FUJ02e5) eraser"id=3[XExtensionKeyboard]

and some lines before there is:

"PnP Device (FUJ02e5)"id=2[XExtensionKeyboard]
^^^^^^ this is the name of the device xsetwacom command needs! ^^^^^^^

I wrote first the line with the eraser cause I suppose that even someone has different wacom model, the eraser will be easy to find by grep command ( $ xinput list | grep -i eraser ), and common in most configures.

now , the edited script I use becomes like this:

#!/bin/sh
if [ $1 == 'normal' ]
then
xrandr -o normal
xsetwacom set "PnP Device (FUJ02e5)" rotate 0

[Code].....

It would be awesome if it chat could happened automatically , simply by rotating the screen, like it happens on Vista. I'll try to find out any solution and update this post if I make it !

View 1 Replies View Related

CentOS 5 Server :: Rotating Named Logs Via Syslog.conf?

Mar 1, 2010

OS CentOS 5.4 I have a DNS server that is logging all named and dns requests to the chrooted named directory. By default named logs to /var/log/messages but I want to isolate all the dns queries and requests to separate files. I know I can add entries to /etc/syslog.conf to "roll" the logs and logrotate should pick them up but fuzzy as to the syntax. I don't know what "tag" to use in the first fieild. for example

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none/var/log/messages

Here is the logging section of my named.conf

# pwd
# /var/named/chroot/etc
logging
{

[code]....

View 5 Replies View Related

CentOS 5 Server :: How To Do A Log Rotate

May 20, 2009

how to do a log rotate. i want to keep just a months worth of logs on my centos 4.7 server.

View 1 Replies View Related

Server :: Rotate Outgoing Ips On Squid?

May 26, 2010

m using Squid 3 for web cache and i want to use multiple outgoing ip addresses. Not 1 ip for 1 client, i want to rotate several outgoing ip addresses to the same client.

Client A --> outgoing IP A
next conection
Client A --> outgoing IP B
and so on

View 8 Replies View Related

Red Hat :: Server Reboots Sometimes Cron.daily

Dec 31, 2008

I have an issue, it doesn't happen every day, I can't seem to trace it down. It happens at 4:02am the cron.daily kicks of at 4AM.. The following is from the /var/log/messages. I receive an panic error then the server shuts down.

View 1 Replies View Related

General :: High CPU Use - Daily Server Down On Same Time

Sep 2, 2010

I am working on Ubuntu 8.04.3 OS, with this I am getting a problem, Daily my server is down on same time at 4:00 PM. I seems server is down by "kswapd0" process, I am not sure, As I run top command, I got below out put

[code]...

View 12 Replies View Related

Server :: Can't Get Logwatch To Email A Daily Summary?

Oct 12, 2010

I have a squid proxy server (which I am very new too) which all traffic from my office goes through. The proxy itself is working fine, but I can not get logwatch to email me a daily summary. logrotate seems to be throwing an error:

# logrotate /etc/logrotate.conf
error: squid:1 duplicate log entry for /var/log/squid/access.log

My /etc/logrotate.d/squid file is below... My access logs are in /logs/squid not in /var/log/squid.

[Code]...

View 1 Replies View Related

Ubuntu :: Archive Daily Images From Webcam-Server?

May 12, 2011

I was just wondering if there is a way (and seeing as how this is Linux we are talking about here, there probably is...) to make a fully functional webcam-server on Ubuntu 10.04.2 save images daily, or weekly? I have a perfectly installed webcam-server running on my website that you just refresh, and it gives you a current image, but I was wanting to have a daily type of archive thing with it, just because.

View 3 Replies View Related

Ubuntu :: Using Server Or Desktop In Computer For Daily Work?

Aug 7, 2011

anyone of you using ubuntu server or desktop in your PC for your daily work? can you share how stable is it?

View 6 Replies View Related

Server :: Create Daily Incremental Backups Easily?

Nov 29, 2010

I've had several HDD crashes on my personal server over the years and it's just gotten to be a real pain in the rear. Crashed again this morning. Currently, I make monthly tarball backups of the entire filesystem using my script:

Code:

#!/bin/sh
# Removes the tarball from the previous execution.
rm -rf /backup/data/*.tar.gz

[code].....

View 13 Replies View Related

General :: Copy Data Files From One Server To Another Online, Automatically, Daily, Using A Script?

Jun 22, 2011

How to move a data files from one Linux server to another in an online Internet environment, automatically daily, using a script?

View 1 Replies View Related

Fedora :: Weekly Raid-check Never Checks Md1?

Feb 21, 2011

I have three raid volumes, md0, md1, and md2. The weekly raid-check cron always causes md0 and md2 to get checked but never md1.

/etc/cron.weekly/99-raid-check

Volumes md0 and md1 are on the same 8 disks. Volume md0 is a small raid1 across all 8 disks for boot and md1 is a raid5 that occupies the rest of those 8 disks. Volume md2 is a raid5 on a separate set of 6 drives. When I check /var/log/messages* I see that every Sunday md0 and md2 get checked but md1 is never checked. However, when I run 99-raid-check manually, all three volumes get checked. There is clearly something different between how crond runs that script and how I run it, but I can't imagine what that would be.

View 2 Replies View Related

General :: AutoMySQLBackup Weekly Backup Modification?

May 4, 2011

I'm using AutoMySQLBackup [URL] script to backup mysql db from several server.I need little help from you who is guru in scripting. I would like to take weekly backup after every 1 week and not every week. i.e. on every 14 days. This is the weekly backup portion of the script:

Code:

# Weekly Backup
if [ ${DNOW} = ${DOWEEKLY} ]; then
${ECHO} Weekly Backup of Database ( ${DB} )
${ECHO}

[code]....

View 4 Replies View Related

General :: Logrotate Httpd Log Files ?

Jan 11, 2010

I need to logrotate logs in directories in /var/log/httpd/.

There are 4 directories in /var/log/httpd/... these directories are /var/log/httpd/access/ /var/log/httpd/debug/ /var/log/httpd/error/ /var/log/httpd/required/

Each of the access, required, error and debug directories have around 20 to 30 access log files of different locations for example:mumbai-access.log, pune-access.log etc..same is the case for 'error' dir 'required' dir and 'debug' dir in /var/log/httpd/

I need to clean up the logfiles in all the 4 directories access, error, debug and required...

I have made a custom logrotate file as follows:

Is the above config correct?

Am I missing something? Will this logrotate the files in /var/log/httpd/access, /var/log/httpd/error, /var/log/httpd/required and /var/log/httpd/error ?

Do i need to include following line in postrotate " /bin/kill -HUP `cat /var/run/httpd.pid 2>/dev/null` 2> /dev/null || true" ?

View 3 Replies View Related

Software :: Logrotate Download Site

Jul 10, 2009

I am looking for a good site to download logrotate for RHEL.

View 1 Replies View Related

Software :: Logrotate Duplicate Log Entry

Jan 1, 2011

having a problem with logrotate. it's complaing about a duplicate log entry but there isn't a duplicate log entry that i can see.

View 4 Replies View Related

CentOS 5 :: Segmentation Faults With Yum, Logrotate, And Others?

Dec 4, 2010

Recently I noticed that on my Centos 5.4 system, yum no longer works and is giving segmentation faults. I can run "yum --help" and it works, but if I try to run something like "yum upgrade php" it will fault. I also noticed that other things are seg faulting as well, like /usr/sbin/logrotate and /usr/bin/certwatch.

I am guessing there is some sort of common library that needs fixing, but I have no idea what. I've read other posts about the yum segmentation fault and have tried various steps provided but so far no luck in getting it to work again. It used to work, and I rarely change this system so I'm not sure what could have caused it.

View 2 Replies View Related







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