Hi, Please check the below example,
But what I required is, as my log file never reaches the max size of 5M and it will be max upto 5-10K(which is also not sure), I would like to logrotate it monthly, irrespective of the size whether it reached some specified size. And also I have to zip all the log files while rotation.
Last edited by Scott; 02-07-2011 at 07:25 AM..
Reason: Code tags, please...
Hi,guys:
recently,i am puzzled by a question .when i create a new file named by /etc/logrotate.d/debug. The cont. is listed as follow:
/var/log/debug {
rotate 3
missingok
notifempty
size=2k
prerotate
/bin/kill -HUP `cat... (0 Replies)
Hi,
I have a file A.txt (tab separated) as below:
pavan chennai/tes/bangalore 100
sunil mangalore/abc/mumbai 230
kumar delhi/nba/andhra 310
I want to change only second column as below . Rest of columns as it is ;The ouput file is also tab... (4 Replies)
Hi
i configured log rotate for a specific file.
/var/log/sauer
i configured create a file in logrotate.d
# cat /etc/logrotate.d/sauer
#this is a logrotate configuration file for msu_ng logs
/var/log/sauer {
rotate 5
size=1M
daily
compress
... (5 Replies)
Hi, i have a logroate script that works properly when running manually but otherwise it won't work.I put in in /etc/logrotate.d/nginx. I simply cannot understand why it won't run properly when run with a cronjob. It suppose to run hourly and rotate logs if they are > 3mb. What am i missing here ?:... (1 Reply)
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)
Hi,
We currently have an Oracle database running and it is creating lots of processes in the /proc directory that are 1000M in size. The size of the /proc directory is now reading 26T. How can this be if the root file system is only 13GB?
I have seen this before we an Oracle temp file... (6 Replies)
To find the whole size of a particular directory i use "du -sk /dirname".. but after finding the direcory's size how do i make conditions like if the size of the dir is more than 1 GB i hav to delete some of the files inside the dir (0 Replies)
We have a configuration file in Unix. In that we have entries like below. if it ends with ":", then it is the end of record. We need to find our if there is any duplicate entries like ABCD irrespective of the case.
ABCD:\
:conn.retry.stwait=00.00.30:\
:sess.pnode.max=255:\
... (9 Replies)
I have been searching both on Unix.com and Google and have not been able to find the answer to my question. I think it is partly because I can't come up with the right search terms.
Recently, my virtual server switched storage devices and I think the problem may be related to that change.... (2 Replies)
Hi All,
How to search for a string in all the files irrespective of directory.
If I use grep -i 'hello' *.*
It will search for the string hello in the files of current directory.
But I want to check for the string hello in the files of all the directories.
Thanks (4 Replies)
Discussion started by: ROCK_PLSQL
4 Replies
LEARN ABOUT DEBIAN
epylog-modules
epylog-modules(5) Applications/System epylog-modules(5)NAME
epylog-modules - epylog module cofiguration.
SYNOPSIS
epylog uses pluggable modules to perform analysis and report on syslog strings. This manpage explains the format of the module config
files.
modules.d
Epylog config files are placed in the modules.d directory of the cfgdir specified in epylog.conf. Any file ending in .conf in that direc-
tory is considered a module config file. Most common location for modules.d directory is in /etc/epylog/modules.d.
module.conf
The name of the config file doesn't carry much meaning, however it MUST end in .conf in order to be recognized as a module config file.
The config file for each module is separated into two parts: [module] and [conf].
[module]
desc The description of the module. It will be shown in the final report.
exec This is where the "body" of the module is located. Most modules that come with the distribution will be placed in /usr/share/epy-
log/modules, but depending on your setup, you may place them elsewhere.
files List the logfiles requested by this module in this field. Separate multiple entries by comma. Epylog will handle rotated files, but
you need to specify the mask appropriately. E.g. the most common logrotate setup will place rotated files in the same directory and
add .0, .1, .2, etc to the end of the file. Therefore, a file entry would look like so:
/var/log/filename[.#]
If you have compression turned on, your entry will look like so:
/var/log/filename[.#.gz]
Lastly, for advanced configurations, more complex entries may be required. E.g. if your logrotate saves rotated files in a subdirec-
tory in /var/log, you can specify it like so:
/var/log/[rotate/]filename[.#.gz]
This will work, too:
/var/log/filename[/var/rotate/filename.#.gz]
In any case, "#" will be where the increments will go.
enabled
Can be either "yes" or "no". If "no" is specified, Epylog will completely ignore this module.
internal
Can be either "yes" or "no". If "yes", then the module is handled as an internal module, and if "no", then the external module API
is used. See doc/modules.txt for more information about the module APIs.
outhtml
Specifies whether the output produced by the module is HTML or not. Can be either "yes" or "no".
priority
An unsigned int. Most commonly a number from 0 to 10. Modules with the lowest number will be considered the highest prioroty and
will be both invoked and presented in the final report before the others.
[conf]
This is where per-module configuration directives go. Some modules have these, some don't. Look in the module config file -- the available
values should be listed and described there.
COMMENTS
Lines starting with "#" will be considered commented out.
AUTHORS
Konstantin Ryabitsev <icon@linux.duke.edu>
SEE ALSO epylog(8), Epylog(3), epylog.conf(5)Konstantin Ryabitsev 1.0 epylog-modules(5)