06-21-2010
how am i going to troubleshoot ..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
is it possible to check logs in UNIX who deleted the files?
Is there logs in UNIX besides .sh_history? (1 Reply)
Discussion started by: james_falco
1 Replies
2. Shell Programming and Scripting
how to check whether logs are updating or not in unix
is there any built in command or function ? (1 Reply)
Discussion started by: mail2sant
1 Replies
3. Solaris
I have the below shell script which is checking /archlog mount point space on cappire(solaris 10) server. When the space usage is above 80% it should e-mail. When i tested this script it is working as expected.
-------------------------------------------------------------------------... (0 Replies)
Discussion started by: dreams5617
0 Replies
4. Shell Programming and Scripting
I have 5 log files under different directores . say for eg abc under /home/dir1 , xyz under home/dir2 . is there a script that i can run from say /home that searchers all these files for string or combination of strings and write to a file
eg search file by timestamp|keyword
o/p in a file (6 Replies)
Discussion started by: Nevergivup
6 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I'm a newbie in Linux Programming.:)
Got some 500 processes running and I have around 20-30 logs updating for every 2mins on a server. The logs which i'm referring usually contains book name,run ids(not PID's),process name etc etc.
I'm interested in finding out whether some particular... (1 Reply)
Discussion started by: Nand Kishor
1 Replies
6. UNIX for Advanced & Expert Users
Hi with the help of Gabriel canepa, i have just edited filename only in his code. The help which i got and he helped is
1) I have around 22 logs and each log should be updated in the last 24 hours from the current timestamp.
2) It should check for ERROR message (not error,Error) in the log and... (2 Replies)
Discussion started by: Kalaihari
2 Replies
7. Shell Programming and Scripting
I have nearly 25+ tail commands which we need to verify the logs if there is any errors on current or previous date with time. I need this to be automate and send email to me with details. Please help me on this. (5 Replies)
Discussion started by: Nasir HussainSM
5 Replies
8. Shell Programming and Scripting
HI,
In our project daily we need to check for some errors in around 45-50 folders. Please let me know if there is any utility tool using which 1 can check each folder and file for error.
Use: Monday we are checking if there were any error in files generated on Monday
Tuesday to Wednesday we... (7 Replies)
Discussion started by: ankush_mehra
7 Replies
9. Shell Programming and Scripting
Hi,
My goal is to monitor the response time from the access logs of nginx server. I am using gawk to print the needed fields - 'response time' and 'name of the service' from nginx logs.
Command: gawk '($6 ~ /cloudservice/) {print $10, $6}' access.log
Output:
0.645 /nc/cloudservice... (6 Replies)
Discussion started by: nshah11
6 Replies
10. Shell Programming and Scripting
Hello Experts,
I need to write a shell script to check if a file is open and something is being written to it. I want to know how OS handles it. I checked with lsof command but it is not working. For a test I did this.
while true; do echo `date` >>abc.txt; done
then I checked
lsof |... (5 Replies)
Discussion started by: shekhar_4_u
5 Replies
LEARN ABOUT DEBIAN
http::server::simple::recorder
HTTP::Server::Simple::Recorder(3pm) User Contributed Perl Documentation HTTP::Server::Simple::Recorder(3pm)
NAME
HTTP::Server::Simple::Recorder - Mixin to record HTTP::Server::Simple's sockets
SYNOPSIS
package MyServer;
use base qw/HTTP::Server::Simple::Recorder HTTP::Server::Simple::CGI/;
sub recorder_prefix { "path/to/logs/record" } # defaults to /tmp/http-server-simple-recorder
# logs to path/to/logs/record.34244.1.in,
# path/to/logs/record.34244.1.out,
# path/to/logs/record.34244.2.in,
# path/to/logs/record.34244.2.out, etc, if 34244 is the PID of the server
DESCRIPTION
This module allows you to record all HTTP communication between an HTTP::Server::Simple-derived server and its clients. It is a mixin, so
it doesn't itself subclass HTTP::Server::Simple; you need to subclass from both HTTP::Server::Simple::Recorder and an actual
HTTP::Server::Simple subclass, and HTTP::Server::Simple::Recorder should be listed first.
Every time a client connects to your server, this module will open a pair of files and log the communication between the file and server to
these files. Each connection gets a serial number starting at 1. The filename used is "<$self-"recorder_prefix>>, then a period, then the
connection serial number, then a period, then either "in" or "out". "recorder_prefix" defaults to "/tmp/http-server-simple-recorder", but
you can override that in your subclass. For example, you might want to include the process ID.
DEPENDENCIES
IO::Tee, HTTP::Server::Simple.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests to "bug-http-server-simple-recorder@rt.cpan.org", or through the web interface at
<http://rt.cpan.org>.
SEE ALSO
HTTP::Server::Simple, HTTP::Recorder.
AUTHOR
David Glasser "<glasser@bestpractical.com>"
LICENCE AND COPYRIGHT
Copyright (c) 2005, Best Practical Solutions, LLC. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
perl v5.10.0 2008-11-29 HTTP::Server::Simple::Recorder(3pm)