Professional Web Applications Themes

syslog truncate - SCO

Hi, I am interested if it is safe to truncate syslog (it contains data for last 3 years since the server was installed and it is over 23Mb). Is it safe to truncate portion of it (lets say to leave only messages for current year) ? How should I do it ? (what commands). System is SCO OpenServer 5.0.6 Thanks...

  1. #1

    Default syslog truncate

    Hi,

    I am interested if it is safe to truncate syslog (it contains data for last
    3 years since the server was installed and it is over 23Mb).
    Is it safe to truncate portion of it (lets say to leave only messages for
    current year) ?
    How should I do it ? (what commands).
    System is SCO OpenServer 5.0.6

    Thanks


    Sinisa Guest

  2. #2

    Default Re: syslog truncate

    "Sinisa" <vojvodicsrogers.com> wrote in message
    news:GGjWa.48722$rsJ.46378news04.bloor.is.net.cab le.rogers.com...
    > Hi,
    >
    > I am interested if it is safe to truncate syslog (it contains data for
    last
    > 3 years since the server was installed and it is over 23Mb).
    > Is it safe to truncate portion of it (lets say to leave only messages for
    > current year) ?
    > How should I do it ? (what commands).
    > System is SCO OpenServer 5.0.6
    we rotate the file once a month. Move it out of the way, touch a new one,
    kill -HUP syslog's process.



    Stuart J. Browne Guest

  3. #3

    Default Re: syslog truncate

    Sinisa typed (on Fri, Aug 01, 2003 at 01:49:26AM +0000):
    |
    | I am interested if it is safe to truncate syslog (it contains data for last
    | 3 years since the server was installed and it is over 23Mb).
    | Is it safe to truncate portion of it (lets say to leave only messages for
    | current year) ?
    | How should I do it ? (what commands).
    | System is SCO OpenServer 5.0.6

    I use prune to truncate growing ascii log files, from the top and at a
    newline. Get it from ftp.jpr.com.

    --
    JP
    Jean-Pierre Radley Guest

  4. #4

    Default Re: syslog truncate

    In article <20030801032622.GF23529jpradley.jpr.com>,
    Jean-Pierre Radley <jprjpr.com> wrote:
    >Sinisa typed (on Fri, Aug 01, 2003 at 01:49:26AM +0000):
    >| I am interested if it is safe to truncate syslog (it contains
    >| data for last 3 years since the server was installed and it is
    >| over 23Mb). Is it safe to truncate portion of it (lets say to
    >| leave only messages for current year) ?
    >| How should I do it ? (what commands). System is SCO OpenServer
    >| 5.0.6
    >I use prune to truncate growing ascii log files, from the top and at a
    >newline. Get it from ftp.jpr.com.
    I think it would be nice is the SCO products could use something
    like 'newsyslog'. I've been spoiled by it in the FBSD servers I
    maintain.

    It's originally from MIT and project Athena and looking at the
    copyrights it is wide open for anyone to use for any purpose
    as long as the copyright info is maintained. Very similar to the
    BSD style.

    A config file lets you rotate your files based on size, time,
    day, week, month, etc. It has flags to process the processed
    files - so they can be rotated, compressed, and how many copies of
    the old files to be retained.

    Bill
    --
    Bill Vermillion - bv wjv . com
    Bill Vermillion Guest

Similar Threads

  1. PHP Truncate Text
    By Energize in forum Macromedia Exchange Dreamweaver Extensions
    Replies: 2
    Last Post: August 11th, 02:07 AM
  2. Truncate generated mails...
    By Ray at in forum ASP
    Replies: 1
    Last Post: September 19th, 06:41 PM
  3. Replies: 3
    Last Post: July 23rd, 03:47 PM
  4. Truncate Access
    By Ramandeep Singh in forum Microsoft SQL / MS SQL Server
    Replies: 3
    Last Post: July 1st, 07:21 PM
  5. truncate randomly failing
    By Erika in forum Oracle Server
    Replies: 15
    Last Post: December 17th, 06:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139