10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Team,
Hope you all are doing fine
I have one admin server which is being used dedicately to run cron jobs on hourly basis, fetching the details from Database which is in a different server.These cronjob are run on every hourly/5 minutes basis depending as per end user requirement.The script... (12 Replies)
Discussion started by: whizkidash
12 Replies
2. UNIX for Advanced & Expert Users
HI
i was trying to configure logrotate for my apache server and it's not working properly.
here is my lodrotate configuration
/var/log/httpd/*log {
daily
missingok
notifempty
sharedscripts
compress
delaycompress
postrotate
/sbin/service httpd... (1 Reply)
Discussion started by: bentech4u
1 Replies
3. Web Development
Hello,
I've updated my apache access log to include the x-forward-for IP instead of my client(loadbalancer) ip. However, i can't seem to find a way to do the same for the error logs. Can someone please assist. Thank you.
-K (0 Replies)
Discussion started by: kmaq7621
0 Replies
4. Shell Programming and Scripting
Hi Experts,
I am having a requirement, where i need to generate a report of the execution time of all the processes. All the processes generate the log files in a log directory and I can get the execution time from the log files. like below is the log file.
/home/vikas/log >ls -l... (2 Replies)
Discussion started by: k_vikash
2 Replies
5. Web Development
My solaris server utilize the freeware savelog program to rotate apache logs. One server has become very busy and even after doing a graceful restart it continues to log to the saved gzip log file.
Has anyone been able to come up with a way or script to issue a "wait" type command so that the... (2 Replies)
Discussion started by: csross
2 Replies
6. Red Hat
I installed sarg from sarg rpm and i am facing issue while generating sarg reports and getting this time different error below
sarg -l /var/log/squid/access.log
SARG: Records in file: 242332, reading: 0.00%
SARG: Records in file: 242332, reading: 2.06%
SARG: Records in file: 242332, reading:... (0 Replies)
Discussion started by: mail4vij
0 Replies
7. Shell Programming and Scripting
Given that I have a log file of the format:
DATE ID LOG_LEVEL | EVENT
2009-07-23T14:05:11Z T-4030097550 D | MessX
2009-07-23T14:10:44Z T-4030097550 D | MessY
2009-07-23T14:34:08Z T-7298651656 D | MessX
2009-07-23T14:41:00Z T-7298651656 D | MessY
2009-07-23T15:05:10Z T-4030097550 D | MessZ... (5 Replies)
Discussion started by: daccad
5 Replies
8. Shell Programming and Scripting
I`m new to shell scripting and I need some help here
I`m trying to pharse Apache log and I encountered a problem so I need some help...
How to break line into fields having different field separators?
let`s say I want to break line into 9 fields
and the lines format is:
text1 text2... (2 Replies)
Discussion started by: Armisan
2 Replies
9. Shell Programming and Scripting
Hi,
I have a question with sed/awk. When I handle some log files I want to search all reports with specified keyword. For example, in the log below.
abcd
efg
===start
abc
e
===end
xyz
===start
af
f
===end
nf
ga
===start
ab
===end (4 Replies)
Discussion started by: danielnpu
4 Replies
10. Shell Programming and Scripting
hi i have data extracted in the following format ranging around 300000 to 800000 records in a text file , the format is of network data .
No. Time Source Destination Protocol
1 1998-06-05 17:20:23.569905 HP_61:aa:c9 HP_61:aa:c9 ... (1 Reply)
Discussion started by: renukaprasadb
1 Replies
MODGZIP2DLF.IN(1) LogReport's Lire Documentation MODGZIP2DLF.IN(1)
NAME
modgzip2dlf - convert Common Log Format with mod_gzip extensions web server log files to DLF
SYNOPSIS
modgzip2dlf file
DESCRIPTION
modgzip2dlf converts web server log file in the common log format with extensions for mod_gzip to www DLF.
mod_gzip is an Apache extension developed by RemoteCommunications, Inc. Sourcecode is free available from
http://www.RemoteCommunications.com/apache/mod_gzip/mod_gzip. More informations can be found at
http://www.RemoteCommunications.com/apache/mod_gzip/mod_gzip_faq.htm.
mod_gzip can log informations about the compression of pages by configuring Apache to log using the 'gzip' format which can be defined as
follows:
LogFormat "%h %l %u %t "%r" %>s %b %{mod_gzip_result}n %{mod_gzip_compression_ratio}n" gzip
MOD_GZIP EXTENSIONS
The mod_gzip extensions adds two fields to the Common Log Format; see common2dlf(1):
gzip_result compression_ratio
gzip_result
The gzip's result code. Usually OK.
compressio_ratio
The ratio by which the content was compressed. A number from 0 to 100.
Log example :
127.0.01 - - [11/03/2001 12:12:01 -0400] "GET / HTTP/1.0" 200 252 "-" "Mozilla/5.0" OK 49
dsl1.myprovider.com - francis [11/03/2001 12:14:01 -0400] "GET /secret/ HTTP/1.0" 200 300 "http://www.example.com/index.html" "Mozilla/5.0" OK 74
EXAMPLES
To process a log as produced in the modgzip logformat:
$ modgzip2dlf < common.log
modgzip2dlf will be rarely used on its own, but is more likely called by lr_log2report:
$ lr_log2report modgzip < /var/log/httpd/common.log
SEE ALSO
common2dlf(1), combined(2), referer2dlf(1)
AUTHORS
Joost van Baal <joostvb@logreport.org>, Francis J. Lacoste <flacoste@logreport.org> and Egon Willighagen <egonw@logreport.org>, based on an
idea by Edwin Groothuis
VERSION
$Id: modgzip2dlf.in,v 1.10 2006/07/23 13:16:36 vanbaal Exp $
COPYRIGHT
Copyright (C) 2000, 2001 Stichting LogReport Foundation LogReport@LogReport.org
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with
http://www.gnu.org/copyleft/gpl.html.
Lire 2.1.1 2006-07-23 MODGZIP2DLF.IN(1)