This is on a Sun box, but the principle is the same... (remember to archive syslog if you require it: cp ./syslog ./syslog.archive; gzip ./syslog.archive)
If the file isn't truncated right away, you might need to
kill -HUP <syslogd_pid_here>
Hi Engg. ! :cool:
When I am trafering a file through ftp from windows to UNIX having size about 1.24 GB then at the end of file transfer I got a error message "Extended file size limit (coredump)" and finnally ftp stop, whenever on other UNIX server the same file from windows... (1 Reply)
I have a very large syslog file on a Unixware 7.01 system. Can I delete the syslog file and will Unixware 7.01 recreate it? If not, what is the best way to clear the syslog file to reduce its size? (1 Reply)
Hello,
I am having performance problem when , i ported a c code from Unixware 2.1 to Unixware 7.0.0.
My program establishes a synchornous connection with the client in a windows OS and then sends and receives messsages using the recv and send calls.
What i hyave noticed is that after a... (0 Replies)
Hi, Im trying to take a database backup. one of the files is 26 GB. I am using cp -pr to create a backup copy of the database. after the copying is complete, if i do du -hrs on the folders i saw a difference of 2GB.
The weird fact is that the BACKUP folder was 2 GB more than the original one!
... (1 Reply)
I have one large file, after every 200 line i have to split the file and the add header and footer to each small file?
It is possible to add different header and footer to each file? (1 Reply)
Hello Gurus,
We are facing some performance issue in UNIX. If someone had faced such kind of issue in past please provide your suggestions on this .
Problem Definition:
/Few of load processes of our Finance Application are facing issue in UNIX when they uses a shell script having below... (19 Replies)
Hi-
I am trying to search a large file with a number of different search terms that are listed one per line in 3 different files. Most importantly I need to be able to do a case insensitive search.
I have tried just using egrep -f but it doesn't seam to be able to handle the -i option when... (3 Replies)
I have a very large system generated file containing around 500K rows size 100MB like following
HOME|ALICE STREET|3||NEW LISTING
HOME|NEWPORT STREET|1||NEW LISTING
HOME|KING STREET|5||NEW LISTING
HOME|WINSOME AVENUE|4||MODIFICATION
CAR|TOYOTA|4||NEW LISTING
CAR|FORD|4||NEW... (9 Replies)
Hi,
Anyone can help, I have a large textfile (one file), and I need to split into multiple file to break each file into ^L.
My textfile
==========
abc company
abc address
abc contact
^L
my company
my address
my contact
my skills
^L
your company
your address
========== (3 Replies)
Dear Users,
Appreciate your help if you could help me with splitting a large file > 1 million lines with sed or awk. below is the text in the file
input file.txt
scaffold1 928 929 C/T +
scaffold1 942 943 G/C +
scaffold1 959 960 C/T +... (6 Replies)
Discussion started by: kapr0001
6 Replies
LEARN ABOUT DEBIAN
logger::syslog
Logger::Syslog(3pm) User Contributed Perl Documentation Logger::Syslog(3pm)NAME
Logger::Syslog -- an intuitive wrapper over Syslog for Perl
DESCRIPTION
You want to deal with syslog, but you don't want to bother with Sys::Syslog, that module is for you.
Logger::Syslog takes care of everything regarding the Syslog communication, all you have to do is to use the function you need to send a
message to syslog.
Logger::Syslog provides one function per Syslog message level: debug, info, warning, error, notice, critic, alert.
NOTES
Logger::Syslog is compliant with mod_perl, all you have to do when using it in such an environement is to call logger_init() at the
beginning of your CGI, that will garantee that everything will run smoothly (otherwise, issues with the syslog socket can happen in
mod_perl env).
SYNOPSIS
use Logger::Syslog;
info("Starting at ".localtime());
...
if ($error) {
error("An error occured!");
exit 1;
}
...
notice("There something to notify");
FUNCTIONS
logger_init
Call this to explicitly open a Syslog socket. You can optionaly specify a Syslog facility.
That function is called when you use the module, if you're not in a mod_perl environement.
Examples:
# open a syslog socket with default facility (user)
logger_init();
# open a syslog socket on the 'local' facility
logger_init('local');
logger_close
Call this to close the Syslog socket.
That function is called automatically when the calling program exits.
logger_prefix
That function lets you set a string that will be prefixed to every messages sent to syslog.
Example:
logger_prefix("my program");
info("starting");
...
info("stopping");
logger_set_default_facility(facility)
You can choose which facility to use, the default one is "user". Use that function if you want to switch smoothly from a facility to
another.
That function will close the existing socket and will open a new one with the appropriate facility.
Example:
logger_set_default_facility("cron");
LOGGING
Logger::Syslog provides one function per Syslog level to let you send messages. If you want to send a debug message, just use debug(), for
a warning, use warning() and so on...
All those function have the same signature : thay take a string as their only argument, which is the message to send to syslog.
Examples:
debug("my program starts at ".localtime());
...
warning("some strange stuff occured");
...
error("should not go there !");
...
notice("Here is my notice");
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
COPYRIGHT
This program is copyright X 2004-2006 Alexis Sukrieh
AUTHOR
Alexis Sukrieh <sukria@sukria.net>
Very first versions were made at Cegetel (2004-2005) ; Thomas Parmelan gave a hand for the mod_perl support.
perl v5.12.4 2006-11-27 Logger::Syslog(3pm)