10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
For various reasons I decided to rebuild my log server on a new microSD. To simplify matters I restored a backed up copy of the appropriate config files and uploaded them to the new log server once syslog-ng was setup. The issue I am running into now is when logrotate compresses the log... (3 Replies)
Discussion started by: MyUserName7000
3 Replies
2. UNIX for Beginners Questions & Answers
Hi all !
I've an issue to exclude a log file from logrotate, I tried this below:
/var/log/apache2/*.log {
olddir /var/log/apache2/old
missingok
rotate 50
compress
copytruncate
notifempty
create 644 root root
}
I tried also:... (0 Replies)
Discussion started by: Arnaudh78
0 Replies
3. Solaris
Hi Guys -
We have the /var/adm/pacct file currently configured to log rotate using logadm - here is the entry in logadm.conf:
/var/adm/pacct -C 0 -N -P 'Wed Oct 23 08:00:00 2013' -a '/usr/lib/acct/accton pacct' -g adm -m 664 -o adm -p never
Just want to ask if it would like possible to... (1 Reply)
Discussion started by: akaterasu
1 Replies
4. AIX
Hi Admins.
I have installed logrotate rpm on Aix 6.1.
After the installation of rpm, I don't find /etc/logrotate.conf file and /etc/logrotate.d dir .
The config file is located in /opt/freeware/etc/logrotate.conf.
When I ran
logrotate -v /opt/freeware/etc/logrotate.conf
I get below... (2 Replies)
Discussion started by: snchaudhari2
2 Replies
5. Red Hat
Hello, can someone please suggest how to create an logrotate for this scenario. Need to delete all log file which are created more than 30 days ago, and all the log file have date stamp on it.
I dont want to create a cron job for this task.
here is the example
-rw-r--r-- 1 tomcat tomcat ... (2 Replies)
Discussion started by: bobby320
2 Replies
6. Shell Programming and Scripting
I have written script which is working in Home directory perfectly and also compressing log files and rotating correctly. But, when i try to run script for /var/log/ i am able to get compressed log files but not able to get rotation of compressed log files. Please suggest.
I am using below command... (5 Replies)
Discussion started by: VSom007
5 Replies
7. Red Hat
I am having a requirement to rotate the my application logs dailay as it is keep on writiing to single file and below is the logrotate function which I am using,
cat /apps/bmc/bmtm/QPasa_logrotate.conf
/apps/bmc/bmtm/all_events.log /apps/bmc/bmtm/history_association.log {
missingok
... (1 Reply)
Discussion started by: sandyrajh
1 Replies
8. Shell Programming and Scripting
Hi,
How to give file name for the zip file while compressing in logrotate...
Should we need to give it in the logrotate.conf file or in the spec file...? (2 Replies)
Discussion started by: Dedeepthi
2 Replies
9. Shell Programming and Scripting
hi,
How to logrotate irrespective of the size of a file/directory...?
Please help me in this regard... (4 Replies)
Discussion started by: Dedeepthi
4 Replies
10. UNIX for Advanced & Expert Users
Hi there,
I want to rotate the logfiles which are located in /var/log/jboss/tomcat*
so I have created a file named as 'tomat' in /etc/logrotate.d/tomcat with the following content.
# cat /etc/logrotate.d/tomcat
/var/log/jboss/tomcat_access_log*.log {
daily
nocreate
... (2 Replies)
Discussion started by: skmdu
2 Replies
delete(n) [incr Tcl] delete(n)
NAME
delete - delete things in the interpreter
SYNOPSIS
delete option ?arg arg ...?
DESCRIPTION
The delete command is used to delete things in the interpreter. It is implemented as an ensemble, so extensions can add their own options
and extend the behavior of this command. By default, the delete command handles the destruction of namespaces.
The option argument determines what action is carried out by the command. The legal options (which may be abbreviated) are:
delete class name ?name...?
Deletes one or more [incr Tcl] classes called name. This deletes all objects in the class, and all derived classes as well.
If an error is encountered while destructing an object, it will prevent the destruction of the class and any remaining objects. To
destroy the entire class without regard for errors, use the "delete namespace" command.
delete object name ?name...?
Deletes one or more [incr Tcl] objects called name. An object is deleted by invoking all destructors in its class hierarchy, in
order from most- to least-specific. If all destructors are successful, data associated with the object is deleted and the name is
removed as a command from the interpreter.
If the access command for an object resides in another namespace, then its qualified name can be used: delete object foo::bar::x If
an error is encountered while destructing an object, the delete command is aborted and the object remains alive. To destroy an
object without regard for errors, use the "rename" command to destroy the object access command.
delete namespace name ?name...?
Deletes one or more namespaces called name. This deletes all commands and variables in the namespace, and deletes all child names-
paces as well. When a namespace is deleted, it is automatically removed from the import lists of all other namespaces.
KEYWORDS
namespace, proc, variable, ensemble
itcl 3.0 delete(n)