Copy open active log


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Copy open active log
# 8  
Old 03-10-2017
Oracle has its own logger system you should use, not files logged ad-hoc like this. They will rotate themselves.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Search the string in the active log and send mail

Hello, I wanted to search specific string in the acitve log file and send an email if the search string found in the log. Log file is written by application all the time. So, script has to search if any new log entry has the specific string for example " sample exception" and send an email. (1 Reply)
Discussion started by: balareddy
1 Replies

2. Shell Programming and Scripting

How do I calculate total number of active and non active hosts?

#!/bin/bash for digit in $(seq 1 10) do if ping -c1 -w2 192.168.1.$digit &> /dev/null then echo "192.168.1.$digit is UP" else echo "192.168.1.$digit is DOWN" fi done (3 Replies)
Discussion started by: fusetrips
3 Replies

3. UNIX for Dummies Questions & Answers

Active sessions open or long time

What kind of problems can be faced if any session which connects to unix server is open for longer time? How to find out from how much time that session is idle? :) (2 Replies)
Discussion started by: anandgodse
2 Replies

4. Shell Programming and Scripting

Loop script required within an active log file

I need some help please... This is the scenario what I am sitting with. 1 - I am kicking of a batch script. 2 - This batch script is writing to an active log file which is also use by other batch scripts. 3 - I need to monitor this active log file and grep for the script name as well as the... (3 Replies)
Discussion started by: Henk Trumpie
3 Replies

5. Solaris

Link based Active Active IPMP

Hi, I need to configure 4 ip address (same subnet and mask) in one ipmp group (two interfaces) in an active active formation (link based). Can some one provide the steps or a tutorial link. Thanks (2 Replies)
Discussion started by: Mack1982
2 Replies

6. UNIX for Advanced & Expert Users

Rollover/compress log from ACTIVE process

I have some Solaris processes that run weeks at a time that create rather large log files that I would like to archive/compress daily. Instead of stopping the process, what can be done so that the log file is backed up and shrunk, but the process can still log to the open file handle without major... (7 Replies)
Discussion started by: ckmehta
7 Replies

7. AIX

Question about HACMP for active-active mode

Hi all, I am new to HACMP. So sorry for the newie question. But I did search the forum and it seems that no one asks this before. So if a 2-node cluster runs in active-active mode (and the same application), what is the benefit of using HACMP ? If it runs in active-stanby, it is easy to... (9 Replies)
Discussion started by: qiulang
9 Replies

8. Shell Programming and Scripting

grep active log file

Hi Gurus, I am facing a problem with grepping a set of data in active log file which are the info not in uniform, below is the sample data information. I am trying to grep value. Connect_PM Connect to APPS gateway failed ERROR connection to host anyserver.com, service 6600 timed out ... (4 Replies)
Discussion started by: anakiar
4 Replies
Login or Register to Ask a Question
logger::utils(n)					 Object Oriented logging facility					  logger::utils(n)

__________________________________________________________________________________________________________________________________________________

NAME
logger::utils - Utilities for logger SYNOPSIS
package require Tcl 8.4 package require logger::utils ?1.3? ::logger::utils::createFormatCmd formatString ::logger::utils::createLogProc -procName procName ?options...? ::logger::utils::applyAppender -appender appenderType ?options...? ::logger::utils::autoApplyAppender command command-string log op args... _________________________________________________________________ DESCRIPTION
This package adds template based appenders. ::logger::utils::createFormatCmd formatString This command translates formatString into an expandable command string. The following strings are the known substitutions (from log4perl) allowed to occur in the formatString: %c Category of the logging event %C Fully qualified name of logging event %d Current date in yyyy/MM/dd hh:mm:ss %H Hostname %m Message to be logged %M Method where logging event was issued %p Priority of logging event %P Pid of current process ::logger::utils::createLogProc -procName procName ?options...? This command ... -procName procName The name of the procedure to create. -conversionPattern pattern See ::logger::utils::createFormatCmd for the substitutions allowed in the pattern. -category category The category (service). -priority priority The priority (level). -outputChannel channel channel to output on (default stdout) ::logger::utils::applyAppender -appender appenderType ?options...? This command will create an appender for the specified logger services. If no service is specified then the appender will be added as the default appender for the specified levels. If no levels are specified, then all levels are assumed. -service loggerservices -serviceCmd loggerserviceCmds Name of the logger instance to modify. -serviceCmd takes as input the return of logger::init. -appender appenderType Type of the appender to use. One of console, colorConsole. -conversionPattern pattern See ::logger::utils::createFormatCmd for the format of the pattern. If this option is not provided the default pattern [%d] [%c] [%M] [%p] %m is used. -levels levelList The list of levels to apply this appender to. If not specified all levels are assumed. Example of usage: % set log [logger::init testLog] ::logger::tree::testLog % logger::utils::applyAppender -appender console -serviceCmd $log % ${log}::error "this is an error" [2005/08/22 10:14:13] [testLog] [global] [error] this is an error ::logger::utils::autoApplyAppender command command-string log op args... This command is designed to be added via trace leave to calls of logger::init. It will look at preconfigured state (via ::log- ger::utils::applyAppender) to autocreate appenders for newly created logger instances. It will return its argument log. Example of usage: logger::utils::applyAppender -appender console set log [logger::init applyAppender-3] ${log}::error "this is an error" BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category logger of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. KEYWORDS
appender, logger COPYRIGHT
Copyright (c) 2005 Aamer Akhter <aakhter@cisco.com> log 1.3 logger::utils(n)