i'm trying to write a basic script that "watches" the apache access.log file and prints out lines that correspond to slow requests, Im checking for how microseconds it's taken. For the sake of testing, i'm using any number field.
so far I have:-
that command will output the following e.g.
I want to test each f2 field if it's greater than or less than a certain value I only want to output that field and ignore the rest, this is where I need help with, any feedback will be greatly appreciated.
thanks
Moderator's Comments:
Please use code tags next time for your code and data. Thanks
now I have all those numbers I need saved in variable A, I want to add all those numbers up I want to show show (1) the average and (2) the maximum value, I'm getting stuck getting an average value
Hi,
I want to parse below file and Write a function to extract the logs between two given timestamp.
Apache (Unix) Log Samples - MonitorWare
The challenge here is there are three date and time format.
First :- 07/Mar/2004:16:05:49
Second :- Sun Mar 7 16:02:00 2004
Third :- 29-Mar... (6 Replies)
HI
i was trying to configure logrotate for my apache server and it's not working properly.
Os: Red Hat 6
here is my lodrotate configuration
/var/log/httpd/*log {
daily
missingok
notifempty
sharedscripts
compress
delaycompress
postrotate
... (3 Replies)
Our Apache log files are written to a location on the server that we as clients have no access. Don't ask.
Every month, I have to e-mail the administrator to have him manually copy our Apache log files to a directory in our file space. You can probably guess how efficient it is to do things this... (3 Replies)
AM in need of some plugin/script that can monitor HP-UX file "/var/opt/resmon/log/event.log" .
Have written a scrip in sh shell that is working fine for syslog.log and mail.log as having standard format, have interrogated that to Nagios and is working as I required .
But same script failed to... (3 Replies)
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)
I use wdb for debugging and I like to use its watches functionality to watch the values of variables as i step through the code. Can I set this up in .gdbinit so I don't have to add the variables to my watch list every time i re-run wdb?
Thank you very much,
Alex (0 Replies)