logprn(1) logtools logprn(1)NAME
logprn - merge Common-Log Format web logs based on time-stamps
SYNOPSIS
logprn logfile idle-time[:max-wait] command
DESCRIPTION
The logprn program is designed to print new data that is appended to log files. It will wait until a specified amount of time has elapsed
since the last write to the file before printing the data. It will print the data by pipeing it to a specified command. The command will
be run by popen(3) so the usual shell commands will operate (whether this is a bug or a feature is a matter of opinion).
OPTIONS
logfile
specifies a file to read data from. It should be a regular file not a pipe, device, or anything else.
idle-time
max-wait
command
EXIT STATUS
0 Never happens, this program will run forever.
1 Bad command-line parameters or couldn't stat the log file on startup - couldn't start the program.
2 File disappeared or became unreadable at run-time.
3 Can't run the specified command.
AUTHOR
This program, its manual page, and the Debian package were written by Russell Coker <russell@coker.com.au>.
BUGS
Uses popen (3) but I consider this a feature not a bug.
SEE ALSO popen(3)Russell Coker <russell@coker.com.au> 0.06 logprn(1)
Check Out this Related Man Page
clfdomainsplit(1) 1 clfdomainsplit(1)NAME
clfdomainsplit - split Common-Log Format web logs based on domain name
SYNOPSIS
clfdomainsplit [--help] [-i input] [-d defaultfile] [-c cfg-file] [-o directory]
DESCRIPTION
The clfdomainsplit program will split up large CLF format web logs based on domain name. This is for creating separate log analysis passes
for each domain hosted on your server.
OVERVIEW
The input parameter specifies the file to read (default is standard input).
The defaultfile parameter specifies where data goes if it doesn't have a domain (either it has an IP address for the server or it doesn't
have the server-name - the URL is relative to the root of the web server only). The default will be to print them on standard error.
The cfg-file parameter is for specifying the rules for determining what is a different domain name. For example www.coker.com.au belongs
in the same file as coker.com.au and abc.coker.com.au because domain names ending in .au have three major components. The domain names
www.workbenelux.nl and workbenelux.nl belong in the same file because domain names ending in .nl have two major components (as do .com, and
.gov), wheras anything ending in .va belongs to the same organization. The rules are of the form number:pattern which lists the number of
domain parts which are significant (2 for .com and for a simple string comparison, the default will be:
2:com
2:nl
3:au
3:uk
If no config file is specified then it will look for /etc/clfdomainsplit.cfg. Of course comments start with #. Also note that the first
match will be used!
The directory parameter is to specify the location for the files to be created (default is the current directory). I recommend that you
use a directory for this and nothing else as you never know how many files may be created!
EXIT STATUS
0 No errors
1 Bad parameters
AUTHOR
This program, its manual page, and the Debian package were written by Russell Coker <russell@coker.com.au>.
SEE ALSO clfsplit(1),clfmerge(1)russell@coker.com.au 0.06 clfdomainsplit(1)
The problem is alot worse that I thought. I ran the 'test net' after I did the 'stop a' thing and the system worked once, but the second time it froze. No matter what i tried I couldn't get the system out of a frozen state so I had to cycle the power.
I thought lemme check the entire system to... (5 Replies)
I have a program that will export my data to a single file, but it assigns a file name that is overridden every time I run the program. I need to change the file name to have a sequential number in the filename.
How do I rename a file so that the filename contains the system date and time. I want... (5 Replies)
Hi,
I enabled the Autocomplete of filename by the command set -o emacs
But i couldn't enjoy the benifits of vi anymore. i.e I couldn't get the command history by pressing Esc and k.
How to enjoy both of this features at a time.?
Regards
Karthik (3 Replies)
ok. this is a bit of a difficult question but i've been trying to figure this out for quite some time but couldn't.
how do I print columns on the screen?
like take for instant. using the ls and the file command, how do i print it so i can have the filenames on the left hand side and the... (3 Replies)
Hi All,
Please advise . Welcome more suggestions.
For examples, I have 1000 file with prefix x??? In fact, I want to convert them to x???.txt with max 10 files at a time. As such, I will need to call another script to read from those 10 *txt files and sleep 5000 to convert the next 10 again.... (10 Replies)
Dear Friends,
I couldn't able to find what "set +u" does.
Please tell me what is the significance of this command.
Thanks in advance,
swamymns (3 Replies)
Hello,
I want to delete a logfile but not all the message in the log;
example,
wait
wait
wait
wait
hello
hello
hello
hello
so in the logfile i will delete only the text hello and the wait not. (4 Replies)
How can I get around this? when my program reaches the following popen job it halts the program until the ping/netstat/ipconfig/traceroute is completed then resume to the rest of the program...
FILE *in;
extern FILE *popen();
char buff;
char newline;
char nstat;
char nping;
... (5 Replies)
Hi guys
i must write a program which read logfile of my program and print the result.
i wrote this and i want print of the user who have virus.
i extract user and put it in file, now i want know each user have how many virus.
how can i do this in bash, my file is like:
and soso
i... (5 Replies)
I am working on a large program which is always up and must run in as many Linux flavors as possible, i.e. be portable. I have created a number of general utility functions for common tasks it needs to do, and one of these utility functions goes out to the shell to give a Linux command and return... (5 Replies)
Hi Friend,
Need your help.
I have a file which has information of start time and End time . I need to find how much time takes to complete the job . how can I do it in unix command .
Example of Log file :
Start Loading ---Thu Aug 2 17:14:09 EDT 2012
Load... (5 Replies)
I have my log file as below
00:18:02 - Nothing normal; Garbage Collection kicked off & running from last 3 min...
00:19:02 - Nothing normal; Garbage Collection kicked off & running from last 4 min...
00:19:02 - Nothing normal; Garbage Collection kicked off & running from last 4 min...... (11 Replies)
Dear Experts,
I need some help to get the time stamps from the Unix logs. Basically I am want to analyze which step is taking more time. Please give me some inputs. Thanks a lot for your help.
I have got different codes for each for phase as we can see in the logs
00002 – UPDT Starting... (5 Replies)