LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-12-2007, 01:00 AM   #1
mahesh_sonawane
LQ Newbie
 
Registered: Oct 2006
Location: Japan
Posts: 13

Rep: Reputation: 0
syslogd options


Hi All,

Is anybody know that syslogd has the line number option ?
and Can I disable the repeated logs ?
I read manual and search on google but I cant found it.
Your help will be appreciate.

Thank you.

 
Old 06-12-2007, 07:27 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by mahesh_sonawane
Hi All,

Is anybody know that syslogd has the line number option ?
and Can I disable the repeated logs ?
I read manual and search on google but I cant found it.
Your help will be appreciate.

Thank you.

:newbie:
Hi,

Can you please explain what you mean with both statements?

Quote:
"syslogd has the line number option"
Are you asking whether syslogd can insert a number in the
log-files?


Quote:
"Can I disable the repeated logs"
What do you mean when you say "repeated logs"? Messages
like "this was repeated 20 times" to be expanded to have
all 28 entries instead? Do you want to stop log rotation?



Cheers,
Tink
 
Old 06-12-2007, 11:18 PM   #3
mahesh_sonawane
LQ Newbie
 
Registered: Oct 2006
Location: Japan
Posts: 13

Original Poster
Rep: Reputation: 0
Hello Tink,

Thank you very much for the reply.

1. I mean to say that "Is there any option to insert line number in syslog ?"

2. "Can I disable the repeated logs ?" means if same log came then I dont want to put that log in log file. Is this possible or is there any option for this ?

Will you please explain me what is "log rotation" ?

Sorry I am very new to syslog. I dont know the details about syslog.

Thank you.
 
Old 06-13-2007, 02:51 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by mahesh_sonawane
Hello Tink,

Thank you very much for the reply.

1. I mean to say that "Is there any option to insert line number in syslog ?"
Not that I'm aware off, and it doesn't really make too
much sense, either, as far as I'm concerned. What would
the use case be?

Quote:
Originally Posted by mahesh_sonawane
2. "Can I disable the repeated logs ?" means if same log came then I dont want to put that log in log file. Is this possible or is there any option for this ?
Excellent question; on slackware that's something
that "just happens", I never thought about configuring
it explicitly. What distro are you using?


Quote:
Originally Posted by mahesh_sonawane
Will you please explain me what is "log rotation" ?

Sorry I am very new to syslog. I dont know the details about syslog.

Thank you.
Log rotation is not really a feature of syslog, but
rather of logrotate (which co-operates with syslog via cron).
What it does is to roll a log on an e.g. daily or weekly
basis for easy archival, or to prevent unlimited growth
of a file.


Cheers,
Tink
 
Old 06-13-2007, 03:19 AM   #5
mahesh_sonawane
LQ Newbie
 
Registered: Oct 2006
Location: Japan
Posts: 13

Original Poster
Rep: Reputation: 0
Hello Tink,
Thank you very much for the quick reply.
I am sorry that I couldn't explain you properly.

1. Line number option means suppose I want 100 lines only in the logfile. So log file should show only 100 lines. It should be overwrite the oldest line with 101th line.

2. I am using Fedora 5. I search some source code for syslogd I found 2 options one is busybox-1.6.0 (not used syslog.conf )and other is syslogd-1.4.1(uses syslog.conf). In busybox-1.6.0 version it shows all the log evenif it is repeated. In syslogd-1.4.1 version if log line get repeate it shows the message "last message repeated xx times".

3. How can I enable log rotate option ? Suppose I want log on hourly basis.


Thank you.

Regards

Last edited by mahesh_sonawane; 06-13-2007 at 03:22 AM.
 
Old 06-13-2007, 08:01 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Quote:
Originally Posted by mahesh_sonawane
Hello Tink,
Thank you very much for the quick reply.
I am sorry that I couldn't explain you properly.

1. Line number option means suppose I want 100 lines only in the logfile. So log file should show only 100 lines. It should be overwrite the oldest line with 101th line.
I'm fairly certain that you can't. And I fail to see
the benefit in a size-based rotation.


Quote:
Originally Posted by mahesh_sonawane
2. I am using Fedora 5. I search some source code for syslogd I found 2 options one is busybox-1.6.0 (not used syslog.conf )and other is syslogd-1.4.1(uses syslog.conf). In busybox-1.6.0 version it shows all the log evenif it is repeated. In syslogd-1.4.1 version if log line get repeate it shows the message "last message repeated xx times".

3. How can I enable log rotate option ? Suppose I want log on hourly basis.


Thank you.

Regards
That's a question I hope someone with Fedora experience can answer.
I can't, since I don't use it. The distros I use (Slackware by
inclination; debian,suse and ubunut because they're here at work)
all come with logrotate, and the behaviour is configured via
/etc/logrotate.conf and files in /etc/logrotate.d


Cheers,
Tink
 
Old 06-14-2007, 07:31 AM   #7
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Fedora uses the same logrotate arrangement
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
syslogd question tgo Linux - Security 5 09-25-2005 05:48 PM
syslogd in busybox iftiuk Linux - General 2 05-13-2004 03:25 PM
Kernel 2.6.2 options question - LOCKED options ? tvojvodi Linux - General 0 02-17-2004 04:23 AM
syslogd ????????????????????? lub0 Linux - General 2 09-23-2003 08:17 AM
Syslogd hypnoparadise Slackware 3 09-05-2003 12:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration