Sponsored Content
Top Forums Shell Programming and Scripting Archiving a log file on monthly basis Post 302904148 by RudiC on Monday 2nd of June 2014 11:21:39 AM
Old 06-02-2014
I think this has been covered, at least in part, many times in these fora. Show us what you have tried so far.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Autosys JOB on monthly basis

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)
Discussion started by: shahnazurs
3 Replies

2. Shell Programming and Scripting

Shell script for log archiving

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)
Discussion started by: gubbu
3 Replies

3. Shell Programming and Scripting

Split one file to Multiple file with report basis in unix

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)
Discussion started by: krbala1985
10 Replies

4. Shell Programming and Scripting

FTP a file on Hourly basis

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)
Discussion started by: SunilB2011
11 Replies

5. Shell Programming and Scripting

What extra Parameters I can use for archiving log files

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)
Discussion started by: mitsyjohn
3 Replies

6. Shell Programming and Scripting

Separate a file on the basis of timestamp

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)
Discussion started by: arijitsaha
4 Replies

7. UNIX for Dummies Questions & Answers

Tracking the script(.sh) files triggered on daily or monthly basis from source

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)
Discussion started by: SeenuGuddu
2 Replies

8. Shell Programming and Scripting

Splitting XML file on basis of line number into multiple file

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)
Discussion started by: ajju
14 Replies

9. Shell Programming and Scripting

Archiving or removing few data from log file in real time

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
Jifty::Logger(3pm)					User Contributed Perl Documentation					Jifty::Logger(3pm)

NAME
Jifty::Logger -- A master class for Jifty's logging framework DESCRIPTION
Jifty uses the Log4perl module to log error messages. In Jifty programs there's two ways you can get something logged: Firstly, Jifty::Logger captures all standard warnings that Perl emits. So in addition to everything output from perl via the warnings pragmas, you can also log messages like so: warn("The WHAM is overheating!"); This doesn't give you much control however. The second way allows you to specify the level that you want logging to occur at: Jifty->log->debug("Checking the WHAM"); Jifty->log->info("Potential WHAM problem detected"); Jifty->log->warn("The WHAM is overheating"); Jifty->log->error("PANIC!"); Jifty->log->fatal("Someone call Eddie Murphy!"); Configuring Log4perl Unless you specify otherwise in the configuration file, Jifty will supply a default Log4perl configuration. The default log configuration that logs all messages to the screen (i.e. to STDERR, be that directly to the terminal or to the FastCGI log file.) It will log all messages of equal or higher priority to the LogLevel configuration option. --- framework: LogLevel: DEBUG You can override the LogLevel configuration option by setting JIFTY_LOG_LEVEL in your environment. You can tell Jifty to use an entirely different Logging configuration by specifying the filename of a standard Log4perl config file in the LogConfig config option (see Log::Log4perl for the format of this config file.) --- framework: LogConfig: etc/log4perl.conf Note that specifying your own config file prevents the LogLevel config option from having any effect. You can tell Log4perl to check that file periodically for changes. This costs you a little in application performance, but allows you to change the logging level of a running application. You need to set LogReload to the frequency, in seconds, that the file should be checked. --- framework: LogConfig: etc/log4perl.conf LogReload: 10 (This is implemented with Log4perl's init_and_watch functionality) METHODS
new COMPONENT This class method instantiates a new "Jifty::Logger" object. This object deals with logging for the system. Takes an optional name for this Jifty's logging "component" - See Log::Log4perl for some detail about what that is. It sets up a "warn" handler which logs warnings to the specified component. _warning_action change the Log4Perl action from warn to error|info|etc based on the content of the warning. Added because DBD::Pg throws up NOTICE and other messages as warns, and we really want those to be info (or error, depending on the code). List based on Postgres documentation TODO: needs to be smarter than just string matching returns a valid Log::Log4Perl action, if nothing matches will return the default of warn since we're in a __WARN__ handler AUTHOR
Various folks at Best Practical Solutions, LLC. Mark Fowler <mark@twoshortplanks.com> fiddled a bit. perl v5.14.2 2011-02-09 Jifty::Logger(3pm)
All times are GMT -4. The time now is 05:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy