Professional Web Applications Themes

creating different syslog file /var/log/syslog.0 /var/log/syslog.1... - Sun Solaris

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.* files.Are they differ based on timestamp or something else. I mean for today's syslogs, system uses syslog.0, for tommorrow's syslog it uses syslog.1,is it? Thanks for your help, pradeep....

  1. #1

    Default 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.* files.Are
    they differ based on timestamp or something else.
    I mean for today's syslogs, system uses syslog.0, for tommorrow's
    syslog it uses syslog.1,is it?

    Thanks for your help,
    pradeep.
    pradeep Guest

  2. #2

    Default Re: creating different syslog file /var/log/syslog.0 /var/log/syslog.1...

    pradeep <bansalpradeep_2000> wrote:
    > 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.* files.Are
    > they differ based on timestamp or something else.
    man logadm

    Scott
    Scott Howard Guest

  3. #3

    Default Re: creating different syslog file /var/log/syslog.0/var/log/syslog.1...

    pradeep wrote:
    > Could anyone tell me whats the difference between syslog.* files.Are
    > they differ based on timestamp or something else.
    > I mean for today's syslogs, system uses syslog.0, for tommorrow's
    > syslog it uses syslog.1,is it?
    No. The current log is without a numeric extension. ".0" is
    the next oldest one, etc. Its a standard log rotation routine.
    The particular OS version you have determines what's doing the
    rotation but the files are usually a week apart. Examining the
    timestamps in the files should reveal this.

    -am 2003
    Anthony Mandic Guest

  4. #4

    Default Re: creating different syslog file /var/log/syslog.0 /var/log/syslog.1...

    "pradeep" <bansalpradeep_2000> wrote in message
    news:cee26cb4.0307230426.3f94b120posting.google.c om...
    > 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.* files.Are
    > they differ based on timestamp or something else.
    > I mean for today's syslogs, system uses syslog.0, for tommorrow's
    > syslog it uses syslog.1,is it?
    >
    > Thanks for your help,
    > pradeep.
    # man syslog
    # man logrotate

    cheers

    Sam N


    Sam N Guest

Similar Threads

  1. Sys::Syslog
    By Fletcher Mattox in forum PERL Modules
    Replies: 0
    Last Post: March 13th, 09:12 PM
  2. Sys:Syslog
    By Beau E. Cox in forum PERL Beginners
    Replies: 5
    Last Post: November 25th, 05:43 PM
  3. Syslog question
    By Rob in forum Linux / Unix Administration
    Replies: 0
    Last Post: October 27th, 09:22 PM
  4. AIX 5.1.0.0 syslog mistery
    By prae in forum AIX
    Replies: 1
    Last Post: September 17th, 07:36 AM
  5. syslog truncate
    By Sinisa in forum SCO
    Replies: 3
    Last Post: August 1st, 01:24 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