How I can get the logs that are getting stored in specific location in unix server
through an Apache web server installed in unix server?
Requirement is to access the logs through the URL in windows browser without any access. (1 Reply)
I want to write a shell script that deletes all log files in a directory that are older than 30 days except for 3 files:
I am using the following command:
find /tmp/logs -name "*.log" -mtime +30 -exec rm -f {} \;But this command deletes all the log files.
How can i modify this script that... (5 Replies)
i am using HP-UX OS......
delete logs older than 60 days
find -mtime +60 | grep -i '.*log' | xargs rm
-mtime is nt available in HP-UX, pls tell me other option ? (2 Replies)
I have crontab job a tar file to a directory ( tar -cvf /tmp/backup/or.`date +%m%d%y`. /ora/db/* ) , it will do it every day . Now I don't want to keep too much files , I just want to keep the file for 90 days , can advise if I want to remove the backup file which are elder than 90 days , can... (1 Reply)
Hi Team,
Have to write a shell script to pick only 1 hr logs from the generated logfile and send it to other logfile.
Thanks & Regards,
Indu (3 Replies)
As i am working in unix environment so i have an logs that is created by my application at the following location that is
/opt/app/glac/current/servers/ops/logs
inside the logs directory there are different kinds of logs(that is the file having extension as .log ) have been created... (1 Reply)
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)
Discussion started by: srikanth38
5 Replies
LEARN ABOUT DEBIAN
srg
srg(1) General Commands Manual srg(1)NAME
srg - A fast and flexible log analyser for the Squid proxy
SYNOPSIS
srg srg [options] <logfile> [logfile] ...
DESCRIPTION
SRG is a log analyser for the Squid web proxy. SRG takes input in the form of Squid access logs and outputs a series of reports in PHP (or
HTML) format designed to summarise what the users of the cache have been viewing. SRG supports grouping requests by user, subnet or IP and
can also filter on the same criteria.
OPTIONS -C <config file>
Location of the srg config file.
-d Enable debugging output
-f <date>[time]
Start time to begin analysation at
--help -h
Display this help
-H Generate HTML rather than PHP reports
-m <days>
Specify maximum number of days to keep a report
-M Output a summary report suitable for emailing.
-o <directory>
Output Directory
-O <URL>
URL where reports will be located
-t <date>[time]
End time to stop analysation at
-v Verbose mode. Print relevant messages.
-V Print Version and exit.
Date and time should be specified in the following format for -f and -t
Date: YYYY-MM-DD
Time: :HH:MM:SS - note leading :
eg. 2005-01-08:15:46:30 (Jan 8 2005 15:46:30)
Logfile(s) to process should be specified at the end of the options
AUTHOR
SRG is written and maintained by Matt Brown <matt@crc.net.nz> with the help of many others. See AUTHORS in the top level of the source
tree.
BUGS
Of course SRG doesn't have any bugs *wink*, if by some obscure chance you happen to find a bug in SRG, please report it via the URL below
http://sourceforge.net/tracker/?func=add&group_id=62787&atid=501794
srg(1)