Our application write messages, warnings,..etc to the following log file .
/app/cms/diagnostics/logs/cms_messages.log
This file has become huge now. I want this file to be archived on monthly basis using a small shell script.
ie. On the 1st day of every month, cms_messages.log should be archived like
Eg: On 1st June 2014, the current log file should be archived like
and a fresh cms_messages.log should be created in the location /app/cms/diagnostics/logs ?
Dear All,
Can someone tell me how do I setup autosys job where it needs to execute on monthly basis that too on 1st day of the month.
Thanks. (3 Replies)
I have an nfs mount /logfile/project mounted on several of my application server machines. I have 5 jvms running on each machine and I have several machines. the jvms logs are created and rotated every day so it will look like
/jvm1/logs/server.log.2010-10-27
/jvm2/logs/server.log.2010-10-27... (3 Replies)
Hi, Please help on this. i want split the below file(11020111.CLT) to more files with some condition. :b:
1) %s stating of the report
2) %e ending of the report
example starting of the report:
%sAEGONCA| |MUMBAI | :EXPC|N|D
ending of the report
%eAEGONCA| |MUMBAI | :EXPC
3)so the... (10 Replies)
Hi,
I have to upload a file test_201105281100.txt to a ftp location.
The files will be created on hourly basis like test_201105281100.txt, test_201105281200.txt & so on.
After a file is uploaded successfully, I need to rename the file as test_201105281100.success & if it is not uploaded... (11 Replies)
Hello All,
I have developed a script which takes following parameter from the input file to archive log files
1)Input Path
2)File pattern(*.csv)
3)Number of days(+1)
Following is the algorithm of my script
Read the input file
go to that path and search for particular n days older... (3 Replies)
hi,
I have a log file which contains data for last 7 seven days.
I want to copy all the data for 6 days in one file and keep only the data for today in that log file and mail that log file containing today's data.
Log file is in this format
Time: 120529 10:51:08
User@Host: local @ ... (4 Replies)
Hi Gurus,
Is there any solution for tracking the script(.sh) files triggered on daily or monthly basis from source - Datastage (Routines)
Needs to find out if this scripts are running on daily
just want to know that is there anything to track
Thanks in Advance (2 Replies)
Hi All,
I have more than half million lines of XML file , wanted to split in four files in a such a way that top 7 lines should be present in each file on top and bottom line of should be present in each file at bottom.
from the 8th line actual record starts and each record contains 15 lines... (14 Replies)
Hi,
I have a log file that gets updated every second. Currently the size has grown to 20+ GB. I need to have a command/script, that will try to get the actual size of the file and will remove 50% of the data that are in the log file. I don't mind removing the data as the size has grown to huge... (8 Replies)
Discussion started by: Souvik Patra
8 Replies
LEARN ABOUT CENTOS
cgrulesengd
CGRULESENGD(8) libcgroup Manual CGRULESENGD(8)NAME
cgrulesengd - control group rules daemon
SYNOPSIS
cgrulesengd [options]
DESCRIPTION
cgrulesengd is a daemon, which distributes processes to control groups. When any process changes its effective UID or GID, cgrulesengd
inspects the list of rules loaded from the cgrules.conf file and moves the process to the appropriate control group.
The list of rules is read during the daemon startup is are cached in the daemon's memory. The daemon reloads the list of rules when it
receives SIGUSR2 signal. The daemon reloads the list of templates when it receives SIGUSR1 signal.
The daemon opens a standard unix socket to receive 'sticky' requests from cgexec.
OPTIONS
-h|--help
Display help.
-f <path>|--logfile=<path>
Write log messages to the given log file. When '-' is used as <path>, log messages are written to the standard output. If '-f' and
'-s' are used together, the logs are sent to both destinations.
-s[facility]|--syslog=[facility]
Write log messages to syslog. The default facility is DAEMON. If '-f' and '-s' are used together, the logs are sent to both destina-
tions.
-n|--nodaemon
Don't fork the daemon, stay in the foreground.
-v|--verbose
Display more log messages. This option can be used three times to enable more verbose log messages.
-q|--quiet
Display less log messages.
-Q|--nolog
Disable logging.
-d|--debug
Equivalent to '-nvvvf -', i.e. don't fork the daemon, display all log messages and write them to the standard output.
-u <user>|--socket-user=<user>
-g <group>|--socket-group=<group> Set the owner of cgrulesengd socket. Assumes that cgexec runs with proper suid permissions so it
can write to the socket when cgexec --sticky is used.
ENVIRONMENT VARIABLES
CGROUP_LOGLEVEL
controls verbosity of the tool. Allowed values are DEBUG, INFO, WARNING or ERROR.
FILES
/etc/cgrules.conf
the default libcgroup configuration file
SEE ALSO
cgrules.conf (5)
Linux 2009-02-18 CGRULESENGD(8)