How can I control the rotating schedule of specific log files?

How can I control the rotating schedule of specific log files?

Post by Silver CHE » Tue, 09 May 2000 04:00:00



Dear Sir:

  We are happy with 'newsyslog' under FreeBSD, but we are stucked for
  this function under Solaris.

  Could someone show us some light?

  Best Regards.

--
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+

|    Silver CHEN                     Tel(O) : +886-2-8732-2676-650   |
|    3?1F                          Tel(H) : +886-2-2914-1402       |
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+

 
 
 

How can I control the rotating schedule of specific log files?

Post by Logan Sh » Tue, 09 May 2000 04:00:00




Quote:>  We are happy with 'newsyslog' under FreeBSD, but we are stucked for
>  this function under Solaris.

        $ uname -sr
        SunOS 5.7
        $ whereis newsyslog
        newsyslog: /usr/lib/newsyslog
        $ file /usr/lib/newsyslog
        /usr/lib/newsyslog:     executable shell script

I don't know FreeBSD firsthand, so I don't know if this is the same
"newsyslog" or not.

  - Logan

 
 
 

How can I control the rotating schedule of specific log files?

Post by Silver CHE » Wed, 10 May 2000 04:00:00


Dear Sir:

  Thanks, I found the source of FreeBSD, so I'm trying to porting it
  to Solaris.

  I know that newsyslog, it's an shell script, not what I mean.

  Anyway, thanks.




> >  We are happy with 'newsyslog' under FreeBSD, but we are stucked for
> >  this function under Solaris.

>         $ uname -sr
>         SunOS 5.7
>         $ whereis newsyslog
>         newsyslog: /usr/lib/newsyslog
>         $ file /usr/lib/newsyslog
>         /usr/lib/newsyslog:     executable shell script

> I don't know FreeBSD firsthand, so I don't know if this is the same
> "newsyslog" or not.

>   - Logan

--
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+

|    Silver CHEN                     Tel(O) : +886-2-2378-1089-650   |
|    3?1F                          Tel(H) : +886-2-2914-1402       |
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
 
 
 

1. : Shell Script to rotate, analyze and email log files

Hi,

I'm running Netscape Communications Server and would like to
automatically have the log files rotated, analyzed and emailed to me.

Here's my script - I started with Netscape's rotate script and just want
to add on the analysis and email bits, but I can't get the analysis to
happen:-

#!/bin/sh

# Rotates server log files, without affecting users who may be connected
to the server.

DATE=`date +%d-%h`
ROOTDIR=`dirname $0`

LOGS='access errors secure'

(cd $ROOTDIR/logs;

 for i in $LOGS; do
   if [ -f $i ]; then
     mv $i $i.$DATE
   fi
 done)

$ROOTDIR/restart

# All is fine to here, but the next line says that it can't find the
access file!!
/usr/ns-home/extras/log_anly/analyze -i `$ROOTDIR/logs/access.$DATE` -o
analysis -l c+0

Any help would be much appreciated.

Jon

2. X-based firewall configuration tools??

3. rotating and analyzing log files

4. IPChains

5. Rotating Log Files

6. Problems seeing linux machine from win95

7. Rotating a log file..... (script question)

8. DSL howto

9. How can I rotate the log file for a virtual host?

10. Rotating Log files

11. safest way to rotate log files?

12. HOW TO rotate log files on virtual host?

13. IPChains quits logging when logs rotate