* Useless syslogd
@ 2011-02-11 20:47 Gary Thomas
2011-02-11 21:50 ` Tom Zanussi
0 siblings, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2011-02-11 20:47 UTC (permalink / raw)
To: Poky
... at least out of the box.
It seems that syslog is configured to store its messages in
a buffer (memory only?) by default:
$ cat meta/recipes-core/busybox/files/syslog.conf
DESTINATION="buffer" # log destinations (buffer file remote)
...
This doesn't seem very useful to me. I know I can override this
in my platform recipes, but I was just wondering what's the
rationale? Would it not make more sense to chose DESTINATION="file"?
Otherwise, where do the messages go? How can I see them?
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Useless syslogd
2011-02-11 20:47 Useless syslogd Gary Thomas
@ 2011-02-11 21:50 ` Tom Zanussi
2011-02-11 22:26 ` Gary Thomas
2011-02-11 22:27 ` Chris Larson
0 siblings, 2 replies; 7+ messages in thread
From: Tom Zanussi @ 2011-02-11 21:50 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky
On Fri, 2011-02-11 at 12:47 -0800, Gary Thomas wrote:
> ... at least out of the box.
>
> It seems that syslog is configured to store its messages in
> a buffer (memory only?) by default:
>
> $ cat meta/recipes-core/busybox/files/syslog.conf
> DESTINATION="buffer" # log destinations (buffer file remote)
> ...
>
> This doesn't seem very useful to me. I know I can override this
> in my platform recipes, but I was just wondering what's the
> rationale? Would it not make more sense to chose DESTINATION="file"?
> Otherwise, where do the messages go? How can I see them?
>
I think 'logread' is hooked up to read from the buffer, but it seems to
be broken at the moment...
Tom
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Useless syslogd
2011-02-11 21:50 ` Tom Zanussi
@ 2011-02-11 22:26 ` Gary Thomas
2011-02-11 22:27 ` Chris Larson
1 sibling, 0 replies; 7+ messages in thread
From: Gary Thomas @ 2011-02-11 22:26 UTC (permalink / raw)
To: Tom Zanussi; +Cc: Poky
On 02/11/2011 02:50 PM, Tom Zanussi wrote:
> On Fri, 2011-02-11 at 12:47 -0800, Gary Thomas wrote:
>> ... at least out of the box.
>>
>> It seems that syslog is configured to store its messages in
>> a buffer (memory only?) by default:
>>
>> $ cat meta/recipes-core/busybox/files/syslog.conf
>> DESTINATION="buffer" # log destinations (buffer file remote)
>> ...
>>
>> This doesn't seem very useful to me. I know I can override this
>> in my platform recipes, but I was just wondering what's the
>> rationale? Would it not make more sense to chose DESTINATION="file"?
>> Otherwise, where do the messages go? How can I see them?
>>
>
> I think 'logread' is hooked up to read from the buffer, but it seems to
> be broken at the moment...
Thanks for pointing this out. It does seem to work (minimal
test), but I still prefer a file, especially since the buffer
mode seems to use a circular buffer that could get overwritten.
At least I have an easy way to define my own config file.
Thanks
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Useless syslogd
2011-02-11 21:50 ` Tom Zanussi
2011-02-11 22:26 ` Gary Thomas
@ 2011-02-11 22:27 ` Chris Larson
2011-02-11 22:33 ` Gary Thomas
1 sibling, 1 reply; 7+ messages in thread
From: Chris Larson @ 2011-02-11 22:27 UTC (permalink / raw)
To: Tom Zanussi; +Cc: Poky
On Fri, Feb 11, 2011 at 2:50 PM, Tom Zanussi <tom.zanussi@intel.com> wrote:
> On Fri, 2011-02-11 at 12:47 -0800, Gary Thomas wrote:
>> ... at least out of the box.
>>
>> It seems that syslog is configured to store its messages in
>> a buffer (memory only?) by default:
>>
>> $ cat meta/recipes-core/busybox/files/syslog.conf
>> DESTINATION="buffer" # log destinations (buffer file remote)
>> ...
>>
>> This doesn't seem very useful to me. I know I can override this
>> in my platform recipes, but I was just wondering what's the
>> rationale? Would it not make more sense to chose DESTINATION="file"?
>> Otherwise, where do the messages go? How can I see them?
>>
>
> I think 'logread' is hooked up to read from the buffer, but it seems to
> be broken at the moment...
logread is indeed the way to access the circular buffer, though it
does seem like operating against a file would be more consistent -- I
think the original logic was that most of the targeted devices didn't
have a writable area to put the logs, other than flash, if that, but
using tmpfs seems just as good a solution and the logs can be read in
a more traditional fashion..
--
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Useless syslogd
2011-02-11 22:27 ` Chris Larson
@ 2011-02-11 22:33 ` Gary Thomas
2011-02-14 17:04 ` Darren Hart
0 siblings, 1 reply; 7+ messages in thread
From: Gary Thomas @ 2011-02-11 22:33 UTC (permalink / raw)
To: Chris Larson; +Cc: Poky
On 02/11/2011 03:27 PM, Chris Larson wrote:
> On Fri, Feb 11, 2011 at 2:50 PM, Tom Zanussi<tom.zanussi@intel.com> wrote:
>> On Fri, 2011-02-11 at 12:47 -0800, Gary Thomas wrote:
>>> ... at least out of the box.
>>>
>>> It seems that syslog is configured to store its messages in
>>> a buffer (memory only?) by default:
>>>
>>> $ cat meta/recipes-core/busybox/files/syslog.conf
>>> DESTINATION="buffer" # log destinations (buffer file remote)
>>> ...
>>>
>>> This doesn't seem very useful to me. I know I can override this
>>> in my platform recipes, but I was just wondering what's the
>>> rationale? Would it not make more sense to chose DESTINATION="file"?
>>> Otherwise, where do the messages go? How can I see them?
>>>
>>
>> I think 'logread' is hooked up to read from the buffer, but it seems to
>> be broken at the moment...
>
> logread is indeed the way to access the circular buffer, though it
> does seem like operating against a file would be more consistent -- I
> think the original logic was that most of the targeted devices didn't
> have a writable area to put the logs, other than flash, if that, but
> using tmpfs seems just as good a solution and the logs can be read in
> a more traditional fashion..
Indeed. I hacked it before(*) so that /var/log could be ramdisk
and then rotate the logs to FLASH periodically. Sadly, this
isn't supported out of the box (at least busybox's logrotate
insists on keeping the rotated files in /var/log), but I think
it's the best of both worlds.
(*) using an ad-hoc logrotate that could have the rotated files
end up in a directory other than /var/log
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Useless syslogd
2011-02-11 22:33 ` Gary Thomas
@ 2011-02-14 17:04 ` Darren Hart
2011-02-14 17:19 ` Gary Thomas
0 siblings, 1 reply; 7+ messages in thread
From: Darren Hart @ 2011-02-14 17:04 UTC (permalink / raw)
To: Gary Thomas; +Cc: Poky, Chris Larson
On 02/11/2011 02:33 PM, Gary Thomas wrote:
> On 02/11/2011 03:27 PM, Chris Larson wrote:
>> On Fri, Feb 11, 2011 at 2:50 PM, Tom Zanussi<tom.zanussi@intel.com>
>> wrote:
>>> On Fri, 2011-02-11 at 12:47 -0800, Gary Thomas wrote:
>>>> ... at least out of the box.
>>>>
>>>> It seems that syslog is configured to store its messages in
>>>> a buffer (memory only?) by default:
>>>>
>>>> $ cat meta/recipes-core/busybox/files/syslog.conf
>>>> DESTINATION="buffer" # log destinations (buffer file remote)
>>>> ...
>>>>
>>>> This doesn't seem very useful to me. I know I can override this
>>>> in my platform recipes, but I was just wondering what's the
>>>> rationale? Would it not make more sense to chose DESTINATION="file"?
>>>> Otherwise, where do the messages go? How can I see them?
>>>>
>>>
>>> I think 'logread' is hooked up to read from the buffer, but it seems to
>>> be broken at the moment...
>>
>> logread is indeed the way to access the circular buffer, though it
>> does seem like operating against a file would be more consistent -- I
>> think the original logic was that most of the targeted devices didn't
>> have a writable area to put the logs, other than flash, if that, but
>> using tmpfs seems just as good a solution and the logs can be read in
>> a more traditional fashion..
>
> Indeed. I hacked it before(*) so that /var/log could be ramdisk
> and then rotate the logs to FLASH periodically. Sadly, this
> isn't supported out of the box (at least busybox's logrotate
> insists on keeping the rotated files in /var/log), but I think
> it's the best of both worlds.
>
> (*) using an ad-hoc logrotate that could have the rotated files
> end up in a directory other than /var/log
>
I think this is a good idea, but I don't know that anyone will have the
time to jump on it right now. May I suggest you open a bug / feature
enhancement so we don't lose track of this?
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Useless syslogd
2011-02-14 17:04 ` Darren Hart
@ 2011-02-14 17:19 ` Gary Thomas
0 siblings, 0 replies; 7+ messages in thread
From: Gary Thomas @ 2011-02-14 17:19 UTC (permalink / raw)
To: Darren Hart; +Cc: Poky, Chris Larson
On 02/14/2011 10:04 AM, Darren Hart wrote:
> On 02/11/2011 02:33 PM, Gary Thomas wrote:
>> On 02/11/2011 03:27 PM, Chris Larson wrote:
>>> On Fri, Feb 11, 2011 at 2:50 PM, Tom Zanussi<tom.zanussi@intel.com>
>>> wrote:
>>>> On Fri, 2011-02-11 at 12:47 -0800, Gary Thomas wrote:
>>>>> ... at least out of the box.
>>>>>
>>>>> It seems that syslog is configured to store its messages in
>>>>> a buffer (memory only?) by default:
>>>>>
>>>>> $ cat meta/recipes-core/busybox/files/syslog.conf
>>>>> DESTINATION="buffer" # log destinations (buffer file remote)
>>>>> ...
>>>>>
>>>>> This doesn't seem very useful to me. I know I can override this
>>>>> in my platform recipes, but I was just wondering what's the
>>>>> rationale? Would it not make more sense to chose DESTINATION="file"?
>>>>> Otherwise, where do the messages go? How can I see them?
>>>>>
>>>>
>>>> I think 'logread' is hooked up to read from the buffer, but it seems to
>>>> be broken at the moment...
>>>
>>> logread is indeed the way to access the circular buffer, though it
>>> does seem like operating against a file would be more consistent -- I
>>> think the original logic was that most of the targeted devices didn't
>>> have a writable area to put the logs, other than flash, if that, but
>>> using tmpfs seems just as good a solution and the logs can be read in
>>> a more traditional fashion..
>>
>> Indeed. I hacked it before(*) so that /var/log could be ramdisk
>> and then rotate the logs to FLASH periodically. Sadly, this
>> isn't supported out of the box (at least busybox's logrotate
>> insists on keeping the rotated files in /var/log), but I think
>> it's the best of both worlds.
>>
>> (*) using an ad-hoc logrotate that could have the rotated files
>> end up in a directory other than /var/log
>>
>
> I think this is a good idea, but I don't know that anyone will have the time to jump on it right now. May I suggest you open a bug / feature enhancement so we don't lose track of
> this?
Done as two separate bugs
Bug 717 - Improve syslog configurability
Bug 718 - Allow logrotate to use a different file system from the original logs
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-02-14 17:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-11 20:47 Useless syslogd Gary Thomas
2011-02-11 21:50 ` Tom Zanussi
2011-02-11 22:26 ` Gary Thomas
2011-02-11 22:27 ` Chris Larson
2011-02-11 22:33 ` Gary Thomas
2011-02-14 17:04 ` Darren Hart
2011-02-14 17:19 ` Gary Thomas
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.