Hi,
i have to search for a char like that :
export var1="i am not happy /not happy"
with a command like :
grep $var1 file
but this not working with me !!!
thank you in advance. (2 Replies)
Hello,
I am currently trying to edit an ldif file. The ldif specification states that a newline followed by a space indicates the subsequent line is a continuation of the line. So, in order to search and replace properly and edit the file, I open the file in textwrangler, search for "\r " and... (14 Replies)
Hello, I'm searching for a proper way to let the kernel space ISR(implemented in a kernel module) wake up a user space thread on a hardware interrupt.
Except for sending a real-time signal, is it possible to use a semaphore?
I've searched it on google, but it seems impossible to share a... (0 Replies)
Good afternoon! Im new at scripting and Im trying to write a script to
calculate total space, total used space and total free space in filesystem names matching a keyword (in this one we will use keyword virginia). Please dont be mean or harsh, like I said Im new and trying my best. Scripting... (4 Replies)
Hi,
i have done a blunder here, i increased the swap space on Xen5.6 server machine using below steps :-
1056 dd if=/dev/zero of=/root/myswapfile bs=1M count=1024
1057 ls -l /root/myswapfile
1058 chmod 600 /root/myswapfile
1059 mkswap /root/myswapfile
1060 swapon /root/myswapfile
... (1 Reply)
hi guys, me again ;)
i recently opened a thread about physical to zone migration.
My zone is mounted over a "bigger" LUN (500GB) and step is now to move the old files, from the physical server, to my zone.
We are talking about 22mio of files.
i used rsync to do that and every time at... (8 Replies)
Hi,
I run Fedora 17.
I created a physical volume of 30GB on a disk with 60GB of space so there is 30GB of free space. On the physical volume, I created my volume group and logical volumes. I assigned all the space in the physical volume to my volume group. I need to add the 30GB of free space... (1 Reply)
Hi,
I have a space delimited text file but I only want to change the first space to a tab and keep the rest of the spaces intact. How do I go about doing that? Thanks! (3 Replies)
I created a awk state to calculate the number of success however when the query runs it has a leading zero. Any ideas on how to remove the leading zero from the calculation?
Here is my query:
cat myfile.log | grep | awk '{print $2,$3,$7,$11,$15,$19,$23,$27,$31,$35($19/$15*100)}'
02:00:00... (1 Reply)
hi,
I'm trying to calculate IP addresses and their respective calls to our apache Server. The standard format of the input is
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST IP DATE/TIME - - "GET/POST reuest" "User Agent"
HOST... (2 Replies)
Discussion started by: busyboy
2 Replies
LEARN ABOUT CENTOS
logconv.pl
LOGCONV.PL(1) General Commands Manual LOGCONV.PL(1)NAME
logconv.pl - analyzes Directory Server access log files
SYNOPSIS
logconv.pl [-h] [-d <rootDN>] [-s <size limit>] [-v] [-V] [-S <start time>] [-E <end time>] [-efcibaltnxgjuU] [ access log ... ... ]
DESCRIPTION
Analyzes Directory Server access log files for specific information defined on the command line
OPTIONS
A summary of options is included below:
-h, --help
help/usage
-d, --rootDN <Directory Managers DN>
DEFAULT -> cn=directory manager
-D, --data <Location for temporary data files>
DEFAULT -> /tmp
TIP -> If there is not enough RAM, a RAM disk can be used instead:
mkdir /dev/shm/logconv, and use this directory for the "-D" value.
-s, --sizeLimit <Number of results to return per category>
DEFAULT -> 20
-X, --excludeIP <IP address to exclude from connection stats>
E.g. Load balancers
-v, --version show version of tool
Print version of the tool
-S, --startTime <time to begin analyzing logfile from>
Time to begin analyzing logfile from E.g. [28/Mar/2002:13:14:22 -0800]
-E, --endTime <time to stop analyzing logfile>
Time to stop analyzing logfile from E.g. [28/Mar/2002:13:24:62 -0800]
-M, --reportFileMins <CSV output file>
This option creates a CSV report for spreadsheets.
-m, --reportFileSecs <CSV output file>
This option creates a CSV report for spreadsheets.
-B, --bind <ALL | ANONYMOUS | Bind DN >
This generates a report based on either ALL bind dn's, anonymous binds, or a specific DN.
-V, --verbose <enable verbose output - includes all stats listed below except U>
Verbose output
-[efcibaltnxgjuU]
e Error Code stats
f Failed Login Stats
c Connection Code Stats
i Client Stats
b Bind Stats
a Search Base Stats
l Search Filter Stats
t Etime Stats
n Nentries Stats
x Extended Operations
r Most Requested Attribute Stats
g Abandoned Operation Stats
j Recommendations
u Unindexed Search Stats (very detailed)
y Connection Latency Stats
p Open Connection ID Stats
U Unindexed Search Summary
USAGE
Examples:
logconv.pl -s 10 -V access
logconv.pl -d "cn=directory manager" /export/server4/slapd-host/logs/access*
logconv.pl -s 50 -ibgju access*
logconv.pl -S "[28/Mar/2002:13:14:22 -0800]" -E "[28/Mar/2002:13:50:05 -0800]" -e access
AUTHOR
logconv.pl was written by the 389 Project.
REPORTING BUGS
Report bugs to http://bugzilla.redhat.com.
COPYRIGHT
Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
Copyright (C) 2008 Red Hat, Inc.
This manual page was written by Michele Baldessari <michele@pupazzo.org>, for the Debian project (but may be used by others).
This is free software. You may redistribute copies of it under the terms of the Directory Server license found in the LICENSE file of this
software distribution. This license is essentially the GNU General Public License version 2 with an exception for plug-in distribution.
May 18, 2008 LOGCONV.PL(1)