Ask a Question related to SCO, Design and Development.

  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. Similar Questions and Discussions

    1. PHP Truncate Text
      Can anyone please tell me how to truncate dynamic PHP text - is there aan extension available that does this ?? Thanks............
    2. Truncate generated mails...
      - There's no closing quote in your href. - This isn't an ASP issue. - This will be up to whether or not the client's mail program supports this. ...
    3. creating different syslog file /var/log/syslog.0 /var/log/syslog.1...
      Hi, I see different syslog files under /var/log/ /var/log/syslog.0 /var/log/syslog.1 Could anyone tell me whats the difference between syslog.*...
    4. Truncate Access
      Hi guys, How can one provide a user and/or role access to truncate selective tables. For example, how can I give user 'appnet' access to truncate...
    5. truncate randomly failing
      I am having some problems with truncating tables with a procedure, and I just can't figure out why. I am calling the following procedure to...
  3. #2

    Default Re: syslog truncate

    "Sinisa" <vojvodics@rogers.com> wrote in message
    news:GGjWa.48722$rsJ.46378@news04.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

  4. #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

  5. #4

    Default Re: syslog truncate

    In article <20030801032622.GF23529@jpradley.jpr.com>,
    Jean-Pierre Radley <jpr@jpr.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

Posting Permissions

  • You may not post new threads
  • You may 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