Rotating log files - Ubuntu

This is a discussion on Rotating log files - Ubuntu ; I have a server running INN. My problem.. I will not having the file news.notice rotated by the system. It will be done by news.daily. Any clue? -- Akademiker,högutbildade,välavlönade människor högt upp i välståndsligan har plötsligt blivit de som har ...

+ Reply to Thread
Results 1 to 13 of 13

Thread: Rotating log files

  1. Rotating log files

    I have a server running INN.
    My problem.. I will not having the file news.notice rotated
    by the system. It will be done by news.daily.
    Any clue?

    --
    Akademiker,högutbildade,välavlönade människor högt upp i
    välståndsligan har plötsligt blivit de som har det svårt i samhället
    detta skall de sämst ställda nu få betala.



  2. Re: Rotating log files

    On Tue, 26 Feb 2008 14:50:02 +0100, kjell wrote:

    > I have a server running INN.
    > My problem.. I will not having the file news.notice rotated
    > by the system. It will be done by news.daily.
    > Any clue?


    Any clue about what? What's your question?

    --
    "Ubuntu" -- an African word, meaning "Slackware is too hard for me".


  3. Re: Rotating log files

    Dan C skrev på 2008-02-26 :
    > On Tue, 26 Feb 2008 14:50:02 +0100, kjell wrote:


    >> I have a server running INN.
    >> My problem.. I will not having the file news.notice rotated
    >> by the system. It will be done by news.daily.
    >> Any clue?


    > Any clue about what? What's your question?


    I wonder how I can stop the system to
    rotate news.notice because it will be done by news.daily!
    Do you understand?

    --
    mvh/Kjell



  4. Re: Rotating log files

    kjell wrote:
    > Dan C skrev på 2008-02-26 :
    >> On Tue, 26 Feb 2008 14:50:02 +0100, kjell wrote:

    >
    >>> I have a server running INN.
    >>> My problem.. I will not having the file news.notice rotated
    >>> by the system. It will be done by news.daily.
    >>> Any clue?

    >
    >> Any clue about what? What's your question?

    >
    > I wonder how I can stop the system to
    > rotate news.notice because it will be done by news.daily!
    > Do you understand?
    >



    Didn't you pay attention in news.software.nntp?

    As user news:

    ctlinnd throttle news
    news.daily
    ctlinnd go news

    -or-

    ctlinnd throttle news
    scanlogs
    ctlinnd go news

    Read: man scanlogs(8) and man news.daily

    Pay attention to the "norotate" keyword.

    These routines are normally controlled by cron, and the default time is
    0400.

    For further help, use the news.software.nntp newsgroup.


    --
    John

    No Microsoft, Apple, Intel, Trend Micro, nor Ford products were used in the preparation or transmission of this message.

    The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.

  5. Re: Rotating log files


    tis 2008-02-26 klockan 15:05 +0000 skrev John F. Morse:
    > kjell wrote:
    > > Dan C skrev på 2008-02-26 :
    > >> On Tue, 26 Feb 2008 14:50:02 +0100, kjell wrote:

    > >
    > >>> I have a server running INN.
    > >>> My problem.. I will not having the file news.notice rotated
    > >>> by the system. It will be done by news.daily.
    > >>> Any clue?

    > >
    > >> Any clue about what? What's your question?

    > >
    > > I wonder how I can stop the system to
    > > rotate news.notice because it will be done by news.daily!
    > > Do you understand?
    > >

    >
    >
    > Didn't you pay attention in news.software.nntp?
    >

    Yes I did! But what do *you* mean?
    Do you mean this "Try 'alt.os.linux.ubuntu'."

    > As user news:
    >
    > ctlinnd throttle news
    > news.daily
    > ctlinnd go news
    >
    > -or-
    >
    > ctlinnd throttle news
    > scanlogs
    > ctlinnd go news
    >
    > Read: man scanlogs(8) and man news.daily


    I have done. But no important clue.
    >
    > Pay attention to the "norotate" keyword.


    Oh yes. But this isn't the problem!

    "norotate By default, log processing includes rotating and cleaning out
    log files. Using this keyword disables the rotating and cleaning aspect
    of the log processing: the logs files are only scanned for information
    and no contents are altered.

    >
    > These routines are normally controlled by cron, and the default time is
    > 0400.
    >
    > For further help, use the news.software.nntp newsgroup.


    Why, I think it's a relevant question in this newsgroup.
    Maybe you don't agree with me?!
    If I may say so it would be better if you tell me what to do and why.

    I will tell you once again about my problem.

    1. After /etc/cron.d/inn2 and the command
    15 4 * * * news test -x /usr/lib/news/bin/news.daily && news.daily
    expireover lowmark delayrm

    it's ok, and I have new innreport, news.notice....html etc.

    2. Maybe it's after this has executed, "/etc/cron.d/anacron" and the
    command "30 7 * * * root test -x /etc/init.d/anacron
    && /usr/sbin/invoke-rc.d anacron start >/dev/null"

    no information between 4.15 and 7.30 in news.notice!

    So please tell me where I have to change my settings.



  6. Re: Rotating log files

    kjell wrote:

    >> Didn't you pay attention in news.software.nntp?
    >>

    > Yes I did! But what do *you* mean?
    > Do you mean this "Try 'alt.os.linux.ubuntu'."
    >



    No, I mean the correct newsgroup for INN problems is news.software.nntp.

    INN runs on any Unix-like platform. This newsgroup is for Ubuntu GNU/Linux.

    I doubt there is anyone other than myself in this newsgroup running INN.
    I do monitor news.software.nntp and that would be the best place for
    your questions.


    >> As user news:
    >>
    >> ctlinnd throttle news
    >> news.daily
    >> ctlinnd go news
    >>
    >> -or-
    >>
    >> ctlinnd throttle news
    >> scanlogs
    >> ctlinnd go news
    >>
    >> Read: man scanlogs(8) and man news.daily
    >>

    >
    > I have done. But no important clue.
    >
    >> Pay attention to the "norotate" keyword.
    >>

    >
    > Oh yes. But this isn't the problem!
    >
    > "norotate By default, log processing includes rotating and cleaning out
    > log files. Using this keyword disables the rotating and cleaning aspect
    > of the log processing: the logs files are only scanned for information
    > and no contents are altered.
    >



    My thought was you are manually running scanlogs or news.daily without
    the "norotate" keyword, and then you are surprised because the log file
    is empty.


    >> These routines are normally controlled by cron, and the default time is
    >> 0400.
    >>
    >> For further help, use the news.software.nntp newsgroup.
    >>

    >
    > Why, I think it's a relevant question in this newsgroup.
    > Maybe you don't agree with me?!
    >



    No I don't. This is a Ubuntu newgroup. You have a news.software.nntp
    problem, or possibly a cron problem.

    You might get some help here, like I am doing, but the better place to
    go is news.software.nntp.


    > If I may say so it would be better if you tell me what to do and why.
    >
    > I will tell you once again about my problem.
    >
    > 1. After /etc/cron.d/inn2 and the command
    > 15 4 * * * news test -x /usr/lib/news/bin/news.daily && news.daily
    > expireover lowmark delayrm
    >
    > it's ok, and I have new innreport, news.notice....html etc.
    >
    > 2. Maybe it's after this has executed, "/etc/cron.d/anacron" and the
    > command "30 7 * * * root test -x /etc/init.d/anacron
    > && /usr/sbin/invoke-rc.d anacron start >/dev/null"
    >
    > no information between 4.15 and 7.30 in news.notice!
    >
    > So please tell me where I have to change my settings.



    I'm sorry but I can't fully understand your problem.

    As I stated earlier, the default install of INN uses a cron setting of
    0400 daily (if I remember correctly -- yours shows 0415). Your problem
    might be caused by no activity between 0415 and 0730.

    I have the same /etc/cron.d/inn2 configuration as you, except I've moved
    it to midnight.

    0 0 * * * news test -x /usr/lib/news/bin/news.daily &&
    news.daily expireover lowmark delayrm

    I do not have the following file: "/etc/cron.d/anacron" (I'm running INN
    2.4.3 on several Debian 3.1 boxen, not Ubuntu). I do not remember if I
    ever installed INN on any of my Ubuntu boxen, so I can't have a look to
    verify this. Be sure you tell the users of news.software.nntp what
    distro you use, and which version of INN.

    You might watch the output of "tail -F -n1000 /var/log/news/news.notice"
    to see if there's anything strange (correct this path if it is different
    on your system).

    Sorry I can't be of further assistance.


    --
    John

    No Microsoft, Apple, Intel, Trend Micro, nor Ford products were used in the preparation or transmission of this message.

    The EULA sounds like it was written by a team of lawyers who want to tell me what I can't do. The GPL sounds like it was written by a human being, who wants me to know what I can do.

  7. Re: Rotating log files

    On 2008-02-27, John F. Morse wrote:

    > I doubt there is anyone other than myself in this newsgroup running INN.
    > I do monitor news.software.nntp and that would be the best place for
    > your questions.


    Can I ask your reason for running INN? My impression, apologies if I
    am way off the mark, was that INN was intended to provide a news feed
    for a large number of users. I am asking from curiosity as I have
    recently spent a bit of time and effort setting up INN's distant
    cousin Leafnode:

    http://ubuntuforums.org/showthread.php?t=676837

    and I was a little curious about INN.

    Andrew
    --
    http://www.andrews-corner.org

  8. Re: Rotating log files


    ons 2008-02-27 klockan 01:33 +0000 skrev John F. Morse:
    > kjell wrote:
    >
    >
    >
    > My thought was you are manually running scanlogs or news.daily without
    > the "norotate" keyword, and then you are surprised because the log file
    > is empty.


    I see, no I'm aware of that.

    > No I don't. This is a Ubuntu newgroup. You have a news.software.nntp
    > problem, or possibly a cron problem.
    >
    > You might get some help here, like I am doing, but the better place to
    > go is news.software.nntp.
    >


    I think the problem is about cron and log routing!
    You may look at this http://just2write2.myftp.org/innreport.html
    I have restarted the machine so all look well!


    > I'm sorry but I can't fully understand your problem.
    >
    > As I stated earlier, the default install of INN uses a cron setting of
    > 0400 daily (if I remember correctly -- yours shows 0415). Your problem
    > might be caused by no activity between 0415 and 0730.


    At 07.00 I looked at news.notice and news in /var/log/news and they have
    bin rotated 04.15 and new information have been writed in the the logs.
    So far all well!

    > I have the same /etc/cron.d/inn2 configuration as you, except I've moved
    > it to midnight.
    >
    > 0 0 * * * news test -x /usr/lib/news/bin/news.daily &&
    > news.daily expireover lowmark delayrm


    Ok!

    > I do not have the following file: "/etc/cron.d/anacron" (I'm running INN
    > 2.4.3 on several Debian 3.1 boxen, not Ubuntu). I do not remember if I
    > ever installed INN on any of my Ubuntu boxen, so I can't have a look to
    > verify this. Be sure you tell the users of news.software.nntp what
    > distro you use, and which version of INN.


    Can you you tell me what this do : "30 7 * * * root test
    -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start
    >/dev/null"


    >
    > You might watch the output of "tail -F -n1000 /var/log/news/news.notice"
    > to see if there's anything strange (correct this path if it is different
    > on your system).


    At 07.00 I run "tail -F -n1000 /var/log/news/news.notice"
    Information was written all the time! Ok!
    But after this was written in syslog "Feb 27 07:35:59 ubuntu3 syslogd
    1.4.1#21ubuntu3: restart.
    Feb 27 07:35:59 ubuntu3 anacron[24288]: Job `cron.daily' terminated
    Feb 27 07:35:59 ubuntu3 anacron[24288]: Normal exit (1 job run)"
    No more was written to news.notice! Why?
    That is my problem.

    At 07.49 I run "tail -F -n1000 /var/log/news/news.notice" again and it
    look like this:
    kjell@ubuntu3:~$ sudo su news
    $ "tail -F -n1000 /var/log/news/news.notice"
    sh: tail -F -n1000 /var/log/news/news.notice: not found



    > Sorry I can't be of further assistance.


    >
    >



  9. Re: Rotating log files

    On 2008-02-27, John F. Morse wrote:
    > andrew wrote:


    >> Can I ask your reason for running INN? My impression, apologies if I
    >> am way off the mark, was that INN was intended to provide a news feed
    >> for a large number of users. I am asking from curiosity as I have
    >> recently spent a bit of time and effort setting up INN's distant
    >> cousin Leafnode:


    [...]

    > I set it up several years ago to take over from a Mac NNTP server called
    > RumorMill, which started around 2000. INN is far more powerful, and has
    > Perl hooks for Cleanfeed, authentication, etc.


    Thank you very much for the details of your use of INN, most of which
    of course I have snipped :-) It sounds absolutely fascinating! I have
    been lurking quietly in news.software.nntp for a while now and I
    suspect that in the future I will have more to do with INN.

    Thanks again,

    Andrew
    --
    http://www.andrews-corner.org

  10. Rotating log files


    ons 2008-02-27 klockan 07:53 +0100 skrev kjell:


    What meaning have this character "-" in syslog.conf?

    # Logging for INN news system
    #
    news.crit /var/log/news/news.crit
    news.err /var/log/news/news.err
    news.notice -/var/log/news/news.notice



  11. Re: Rotating log files

    On 2008-02-27, kjell wrote:

    > What meaning have this character "-" in syslog.conf?
    > # Logging for INN news system
    > #
    > news.crit /var/log/news/news.crit
    > news.err /var/log/news/news.err
    > news.notice -/var/log/news/news.notice


    The man page for syslog.conf says:

    You may prefix each entry with the minus ``-'' sign to omit
    syncing the file after every logging. Note that you might lose
    information if the system crashes right behind a write attempt.
    Nevertheless this might give you back some performance, especially if
    you run programs that use logging in a very verbose manner.

    Andrew


    --
    http://www.andrews-corner.org

  12. Re: Rotating log files

    kjell skrev:
    > ons 2008-02-27 klockan 07:53 +0100 skrev kjell:
    >
    >
    > What meaning have this character "-" in syslog.conf?
    >
    > # Logging for INN news system
    > #
    > news.crit /var/log/news/news.crit
    > news.err /var/log/news/news.err
    > news.notice -/var/log/news/news.notice


    Hi Kjell!
    You like Ubuntu that's good.
    Try to remove the '-'?


    --
    Delad kultur, fri kunskap och skyddat privatliv.
    http://www.piratpartiet.se/

  13. Re: Rotating log files


    tor 2008-02-28 klockan 15:04 +0100 skrev HR:
    > kjell skrev:
    > > ons 2008-02-27 klockan 07:53 +0100 skrev kjell:
    > >
    > >
    > > What meaning have this character "-" in syslog.conf?
    > >
    > > # Logging for INN news system
    > > #
    > > news.crit /var/log/news/news.crit
    > > news.err /var/log/news/news.err
    > > news.notice -/var/log/news/news.notice

    >
    > Hi Kjell!
    > You like Ubuntu that's good.


    Ubuntu is OK! But Linux difficult in some ways.

    > Try to remove the '-'?


    It's done. I think it made no differnce regarding log rotating.





+ Reply to Thread