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


ADVERTISEMENT

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

CentOS 5 :: Logrotate And Size Of Log Files

May 18, 2011

I have CentOS 5. From sometime logrotate is not working and maillog for example is very big. It is the same for all logfiles. I run "logrotate -d -f /etc/logrotate.conf" but nothing happened. Cron seams to work as I see it with ps -ef |grep cron

View 2 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

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

Ubuntu Servers :: Lucid Logrotate Apache2 Error?

Apr 26, 2011

My apache2 logs aren't being rotated, I have 1 log nearing 100MB in size.

Error shown below when a logrotate happens on apache2 logs:

Code:
error: other_vhosts_access.log:5381 unknown option 'jack' -- ignoring line
error: other_vhosts_access.log:5381 unexpected text
"jack" is a sub-domain.

View 1 Replies View Related

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

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 :: 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 View Related

Software :: Configurable File Maintenance Programs / Scripts (Logrotate)

Mar 27, 2011

Before I start writing my own file maintenance script, maybe one such program/scripts already exist somewhere. Am looking for a file maintenance script/application that is configurable that I can use to process files under certain criteria, for example, removing files that are x-number of days old, gzip'ping files if they are core dumped files, removing files if they are zero-sized files etc. Am not sure logrotate is the solution that am looking for.

View 1 Replies View Related

Ubuntu :: Global Hotkeys On Audacious Don't Respond Unless Open Preferences, Open Settings For Global Hotkeys, Then Close Down The Settings?

Feb 19, 2010

I have two major issues, and one minor one, after I started using Ubuntu, I tried searching the forum for them, but couldn't find anything relevant to my problems.First issue: Screenshots and the cursor.This is probably a very easily fixed issue, but none-the-less, I can not figure it out.How do I NOT include the cursor in my screenshots on Ubuntu 9.10?What I do is, I press the Prt Scrn button, and my cursor is always there in the image, and I don't want that.Second is pidgin.I love it, but every time I boot it up, my friendly name is reverted back to firefoxfag.I think it has something to do with me using gmail for msn, but I'm not sure...Also, as a last very small issue, the global hotkeys on audacious don't respond unless i open preferences, open settings for global hotkeys, then close down the settings..

View 4 Replies View Related

General :: Use A Global Variable To Apply A Condition Within A Script

Feb 28, 2011

I'm trying to use a global variable to apply a condition within a script.

The idea is to use this variable set to e.g. 1 or 2 to run a different part of the script accordingly. I can set the global variable with e.g.

Code:
export WL0=1

run my part of script, increment it by 1 with e.g.

Code:
WL0=$((WL0+1))

but if I re-run the script my WL0 is still set to 1!

I've also tried to add an

export $WL0 at the very end of my script (after the math) but this doesn't change the global variable apparently.

View 15 Replies View Related

Fedora :: Apply Bootloader Configuration Settings?

Jan 27, 2011

It looks like the F14 Bootloader Configuration GUI is missing "OK" button.

So far the only way to configure the F14 Bootloader is by editing /boot/grub/grub.conf.

View 5 Replies View Related

General :: Apply Umask Settings To An Account That Doesn't Log In?

Aug 4, 2011

On my Ubuntu 11.04x64 server, I have service accounts running which do not log in and do not have home directories. These service accounts are responsible for running processes which are invoked as services.When these services created new files, I need them to be created with the permissions 664 (UMASK 002).I edited the /etc/profile umask setting to reflect this. I see that now my user account creates files which reflect this new umask setting, but the service accounts do not when I manually created files using their accounts (sudo -u serviceaccount touch newfile).

View 1 Replies View Related

OpenSUSE :: Personal Settings - Global Keyboard Shortcuts

Jan 28, 2011

I'm new to Linux. I'm running openSUSE 11.3 with both the Gnome and KDE desktops installed, but so far I'm only using Gnome. I was looking for a way to assign sound volume increase/decrease to some keyboard keys instead of having to click on the speaker icon at the bottom of the screen. I found what I included in the Title of this message. Under the Global Keyboard Shortcuts was an item for each increase and decrease sound volume. These were set to (I believe) meta+ and meta-, respectively.

I changed them to F12 and F11, respectively (to match my Apple keyboard). After the changes, I started a game which takes over the entire screen (which is why I wanted to assign the volume to keys in the first place) to see if the changes worked. They did not! So, I tried to go back and change them to something else and now I can't even access Global Keyboard Shortcuts at all. I keep getting the following error:

Sorry - System Settings
Failed to contact the KDE global shortcuts daemon
Message: Could not get owner of name 'org.kde.kglobalaccel': no such name
Error: org.freedesktop.DBus.Error.NameHasNoOwner

What's up and how do I recover from this (if I even care)? Also, how do I assign volume increase/decrease to keys?

View 1 Replies View Related

Ubuntu :: Setting Global Network Proxy Settings?

Jun 14, 2011

I think there is an application which lets you set the proxy settings for all applications. I remember seeing something like this in Gnome's network menu but now I'm using XFCE.

View 1 Replies View Related

OpenSUSE Network :: Use Own Global Template For Akonadis $HOME/.local/share/akonadi/mysql.conf File?

Apr 7, 2011

I am looking for a way to set a default for new users for the akonadi mysql.conf file that is created for each user for the akonadi database. Usually this file contains a inno_db_log_file_size of 64MB. Because of this the database eats up 64MB storage even if its still empty. I would like to decrease this size globally for each "new" user since we have very tight storage restrictions on our NFS home directories now. And 64MB make up already have the quota each user has. So this is to much. where is this default mysql.conf file taken from?

I found hints that there used to be a /usr/share/config/akonadi/mysql-global.conf file that was simply copied but I cannot find such a file on my 11.4 system. It seems things have changed. how akonadis user specific mysql.conf file in ~/.local/share/akonadi/ is generated for a new user? How can I use my own template file here?

View 2 Replies View Related

Ubuntu :: Global Shortcuts To Settings/edit/configuration In GNOME?

Oct 30, 2010

I wonder if GNOME have this very cool shortcut feature where, no matter if it is a GNOME-bundled application or a third-party, you can open up the settings/edit/configuration for that particular app by pressing a keyboard combination?

Mac OS X has it in the form of Cmd+, and KDE also has it, although I dont remember what the default is for that. Does our beloved GNOME have it? It would be so rat if it does, or if it is possibly to enable.

View 2 Replies View Related

Ubuntu :: Dnsmasq Will Not Apply Changes In /etc/dnsmasq.conf?

Dec 27, 2010

ubuntu: 10.04dnsmasq: 2.52-1ubuntu0.1I've installed dnsmasq and it is performing DNS duties correctly. I'd like to limit access to the dnsmasq service to a specific address or interface. I've tried adding variations and combinations of the following to /etc/dnsmasq.conf:

Code:
interface=eth0
and

[code]....

View 1 Replies View Related

Red Hat / Fedora :: Network Manual Settings - Why "apply" Greyed Out?

Mar 21, 2010

I have this old eMachines on which I've been running RedHat for about 7 years. It is kernel 2.4 and I wanted to upgrade to a newer kernel so I can run a newer version of some server software I use.

I was debating whether to upgrade to Fedora 12 or Ubuntu, and some other person recommended, "definitely Fedora" so here I am.

The CD-ROM downloaded fine. I was able to boot and install Fedora fine. But I'm stuck at the network settings.

None of the screens *quite* match what is in the quick or detailed installation guide at the Fedora site.

The main problem I have is I'm trying to manually set a couple of fixed IP addresses. I am in "Editing System eth0" now. If I switch the method from "Automatic" to "Manual" the Apply button turns greyed out, and stays that way even after I enter the address, netmask, gateway (router address I assume?) and a DNS server address.

View 7 Replies View Related

Ubuntu :: Using 9.10 - Karmic Koala Xorg.conf Settings?

Feb 4, 2010

I want to using ubuntu 9.10 karmic koala. In that i want to see the file /etc/X11/xorg.cong file. But i didnt find that file in my distro. So please can anyone tell me how to see that settings and if i want to edit that how to do that?without seeing the format and alues in that file i cant add that file.

View 1 Replies View Related

Ubuntu :: X Doesn't Read Settings From Xorg.conf?

Jun 16, 2011

I'm running Kubuntu 11.04 on a laptop with dual monitor setup. I have Nvidia graphics card and I've successfully configured TwinView for the monitors. However, after saving the settings to xorg.conf (using the nvidia-settings application) X should use both monitors after boot, but only the main monitor is used. I first thought that X didn't read xorg.conf at all, but when I put some illegal statements into the file X wouldn't start and gave an error about the illegal statements. It is thus clear that X does read the file, but it just doesn't seem to use the settings in it.

Here is the contents of my xorg.conf file: [URL]

View 1 Replies View Related

Ubuntu :: Karmic Koala Xorg.conf Settings?

Feb 4, 2010

I want to using ubuntu 9.10 karmic koala. In that i want to see the file /etc/X11/xorg.cong file. But i didnt find that file in my distro. So please can anyone tell me how to see that settings and if i want to edit that how to do that?without seeing the format and alues in that file i cant add that file.

View 3 Replies View Related

Ubuntu Multimedia :: "apply" Button Grayed Out "nvidia X Server Settings?

Apr 8, 2011

Still pretty new to this, from what i have read, the more info i give the better, I am running ubuntu 11.04 with KDE installed via the terminal. I was trying to get my TV to work as another display, I don't know what I have done, after my earlier problems I have learnt to back up and restore my xorg.conf file but with no luck, I now can't change any settings as the title says the apply button is grayed out and when i try and save it to the xorg.conf file and restart the xserver it says that "Your current changes to the X server display configuration may no longer be applied due to changes made to the running X server.

You may either reload the current X server settings and lose any configuration setup in this page, or select "Cancel" and save your changes to the X configuration file (requires restarting X to take effect.)

If you select "Cancel", you will only be allowed to apply settings once you have reset the configuration.Your current changes to the X server display configuration may no longer be applied due to changes made to the running X server. You may either reload the current X server settings and lose any configuration setup in this page, or select "Cancel" and save your changes to the X configuration file (requires restarting X to take effect.)

If you select "Cancel", you will only be allowed to apply settings once you have reset the configuration. Your current changes to the X server display configuration may no longer be applied due to changes made to the running X server. You may either reload the current X server settings and lose any configuration setup in this page, or select "Cancel" and save your changes to the X configuration file (requires restarting X to take effect.)

If you select "Cancel", you will only be allowed to apply settings once you have reset the configuration."

when I booted last i got terminal with this showing, for the first time,

Xlib: extension "RANDR" missing on display ":0".
(orca:1984): Wnck-WARNING **: Property _NET_WM_NAME contained invalid UTF-8
My xorg.conf is
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 270.29 (buildd@roseapple) Fri Feb 25 14:43:24 UTC 2011
Section "ServerLayout"

[Code]...

View 5 Replies View Related

Networking :: Sysctl.conf Settings For Best Internet Connection Speeds?

Mar 7, 2011

Last week I attempted to get "up to speed" with my Comcast cable connection... Ubuntu 9.10, Dell Vostro 400 desktop, Firefox 3.6.13... Comcast says I should have 12 Mbps connection... if I get 1.0 Mbps, I'm doing good... they just tested everything, and said everything is fine on their end. They use [URL] and connects to a server in Chicago, 60 miles away. That gets fantastic speeds, and it's a durn shame the internet doesn't store all its files there!! I use [URL] for my tests, and it uses a server in Dallas TX.

I go to my girlfriends house, and her AT&T DSL line has d/l speeds of 4.5 Mbps or better!!! She's running XP Pro on a Dell machine. So, started digging on the web and thru the forums, and found this:

[URL]

But, like ALL too many things, it's dated... it's from 2008... I've set my settings to what is there, and disabled ipv6 in Firefox. Hey, now, I'm sometimes up to 1.4 Mbps!! Also found this, but no date...

[URL]

Reading forums, I see that folks have said there is a network connection problem with 9.10... and then I see that others are saying the same thing about 10.04 and 10.10!! I have 10.10 on my laptop and had to fight to get its Atheos card to be recognized. Running some tests [URL] gives me weird results: Download 2.64 Mbps, Upload 4.12 Mbps. NOT what it should be. Similar results from testmy.net.

Dunno exactly what info is needed... Speedguide.net gives me results below, but I've tried changing numbers (says my RWIN is low) and nothing changes:

--------------------------------
TCP options string = 020405b40402080adf1dca100000000001030306
MTU = 1500
MTU is fully optimized for broadband.

[code]....

So, today, find, once again, that I'm d'ling in the range of 90/KB/s (719 Kbps)... disgustingly slow. I go on my HP laptop and run the test, and it says 1.6 Mbps. So, desktop directly connected to router is not even 1 Mbps, and wireless connection is faster? Neither of which is close to what I should be getting...

View 5 Replies View Related

Software :: Ubuntu Karmic Koala Xorg.conf Settings

Feb 3, 2010

I want to using ubuntu 9.10 karmic koala. In that i want to see the file /etc/X11/xorg.cong file. But i didnt find that file in my distro. how to see that settings and if i want to edit that how to do that?without seeing the format and alues in that file i cant add that file.

View 3 Replies View Related







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