NSLU2-Linux
view · edit · print · history

OpenSlug.TurnupMemstickSyslog History

Hide minor edits - Show changes to markup

January 20, 2009, at 06:41 AM by RudolfReuter --
Changed lines 5-7 from:

According to the help busybox syslogd -h it means that this version of syslogd ignores /etc/syslog.conf. The file /etc/syslog.conf is used by the startup script /etc/init.d/syslog. If the parameter DESTINATION is = "buffer", then the parameter LOGFILE is not used. If you want to make changes, e.g. set MARKINT (MARK interval in minutes) from 20 to 60 minutes, make the change in /etc/syslog.conf and type as root: /etc/init.d/syslog stop; /etc/init.d/syslog start. With ps you can see which parameters are used:

to:

According to the help busybox syslogd -h it means that this version of syslogd ignores /etc/syslog.conf. Instead the file /etc/syslog.conf is used by the startup script /etc/init.d/syslog. If the parameter DESTINATION is = "buffer", then the parameter LOGFILE is not used. If you want to make changes, e.g. set MARKINT (MARK interval in minutes) from 20 to 60 minutes, make the change in /etc/syslog.conf and type as root: /etc/init.d/syslog stop; /etc/init.d/syslog start. With ps you can see which parameters are used:

January 20, 2009, at 06:38 AM by RudolfReuter --
Changed lines 5-7 from:

According to the help busybox syslogd -h it means that this version of syslogd ignores /etc/syslog.conf. With ps you can see which parameters are used:

to:

According to the help busybox syslogd -h it means that this version of syslogd ignores /etc/syslog.conf. The file /etc/syslog.conf is used by the startup script /etc/init.d/syslog. If the parameter DESTINATION is = "buffer", then the parameter LOGFILE is not used. If you want to make changes, e.g. set MARKINT (MARK interval in minutes) from 20 to 60 minutes, make the change in /etc/syslog.conf and type as root: /etc/init.d/syslog stop; /etc/init.d/syslog start. With ps you can see which parameters are used:

January 09, 2009, at 04:55 PM by RudolfReuter --
January 09, 2009, at 03:17 PM by RudolfReuter --
January 05, 2009, at 02:11 PM by RudolfReuter --
Changed lines 5-7 from:

According to the help busybox syslogd -h it means that this version of syslogd ignores /etc/syslog.conf. With ps you can see which parameters are used:

to:

According to the help busybox syslogd -h it means that this version of syslogd ignores /etc/syslog.conf. With ps you can see which parameters are used:

January 05, 2009, at 02:10 PM by RudolfReuter --
Changed lines 30-31 from:
  $ ps | grep python 2>&1 | logger
and you get with logread -f:\\
to:
  > ps | grep python 2>&1 | logger
and you get with $ logread -f:\\
January 05, 2009, at 02:10 PM by RudolfReuter --
Changed lines 33-36 from:

Jan 5 14:01:30 (none) user.notice rudi: 10044 rudi 568 S grep moin\\@@

to:
  Jan  5 14:01:30 (none) user.notice rudi: 10044 rudi 568 S grep moin\\@@
January 05, 2009, at 02:09 PM by RudolfReuter --
Changed line 29 from:

For example, if you want to log if python is running type:

to:

For example, if you want to log if Python is running type:

Changed lines 32-35 from:
  Jan  5 14:01:30 (none) user.notice rudi: 3492 rudi 11636 S python moin server standalone --start
to:
  Jan  5 14:01:30 (none) user.notice rudi: 3492 rudi 11636 S python moin server standalone --start
Jan 5 14:01:30 (none) user.notice rudi: 10044 rudi 568 S grep moin\\
January 05, 2009, at 02:08 PM by RudolfReuter --
Changed line 29 from:

For example, if you want to log if python is running type:

to:

For example, if you want to log if python is running type:

January 05, 2009, at 02:07 PM by RudolfReuter --
Changed line 8 from:

@@ /sbin/syslogd -n -C 64 -m 20

to:

@@ /sbin/syslogd -n -C 64 -m 20\\

Changed lines 36-37 from:

2009-01-04 RudolfReuter

to:

2009-01-05 RudolfReuter

January 05, 2009, at 02:06 PM by RudolfReuter --
Added line 7:
Added line 28:
Changed line 31 from:

and you get:\\

to:

and you get with logread -f:\\

January 05, 2009, at 02:05 PM by RudolfReuter --
January 05, 2009, at 02:04 PM by RudolfReuter --
Added line 6:
January 05, 2009, at 02:04 PM by RudolfReuter --
Changed line 6 from:
  @@/sbin/syslogd -n -C 64 -m 20
to:

@@ /sbin/syslogd -n -C 64 -m 20

January 05, 2009, at 02:03 PM by RudolfReuter --
Changed lines 4-6 from:

If you want to use your NSLU2 with SlugOS/BE and a Memstick only as mass storage, the turnup script for setting up your operating system configures syslog to use a RAM-buffer instead of the file system (/var/log/messages). Please see /etc/syslog.conf DESTINATION="buffer". The commands to use syslog are in the busybox.

to:

If you want to use your NSLU2 with SlugOS/BE and a Memstick only as mass storage, the turnup script for setting up your operating system configures syslog to use a RAM-buffer instead of the file system (/var/log/messages). Please see /etc/syslog.conf DESTINATION="buffer". The commands to use syslog are in the busybox.
According to the help busybox syslogd -h it means that this version of syslogd ignores /etc/syslog.conf. With ps you can see which parameters are used:
@@/sbin/syslogd -n -C 64 -m 20

  -n means Run as a foreground process
-C 64 means Log to a circular buffer (read the buffer using logread) (64 KB)
-m 20 means Minutes between MARK lines (default=20, 0=off)\\@@
Changed lines 24-26 from:

logread: Jan 4 08:31:45 (none) user.info python: test2

to:

logread: Jan 4 08:31:45 (none) user.info python: test2
For example, if you want to log if python is running type:

  $ ps | grep python 2>&1 | logger
and you get:
Jan 5 14:01:30 (none) user.notice rudi: 3492 rudi 11636 S python moin server standalone --start
January 04, 2009, at 08:42 AM by RudolfReuter --
Changed lines 1-2 from:

TurnupMemstickSyslog, How to use the syslog with "turnup memstick" HoTo?

to:

TurnupMemstickSyslog, How to use the syslog with "turnup memstick"

Back to HowTo

January 04, 2009, at 08:42 AM by RudolfReuter --
Changed lines 1-2 from:

TurnupMemstickSyslog, How to use the syslog with "turnup memstick"

to:

TurnupMemstickSyslog, How to use the syslog with "turnup memstick" HoTo?

January 04, 2009, at 08:39 AM by RudolfReuter --
Changed lines 3-5 from:

If you want to use your NSLU2 with SlugOS/BE and a Memstick only as mass storage, the turnup script for setting up your operating system configures syslog to use a RAM-buffer instead of the file system (/var/log/messages). Please see /etc/syslog.conf DESTINATION="buffer". The commands to use syslog are in the busybox.

to:

If you want to use your NSLU2 with SlugOS/BE and a Memstick only as mass storage, the turnup script for setting up your operating system configures syslog to use a RAM-buffer instead of the file system (/var/log/messages). Please see /etc/syslog.conf DESTINATION="buffer". The commands to use syslog are in the busybox.

January 04, 2009, at 08:39 AM by RudolfReuter --
Changed lines 1-2 from:

TurnupMemstickSyslog, How to use the syslog with turnup memstick

to:

TurnupMemstickSyslog, How to use the syslog with "turnup memstick"

January 04, 2009, at 08:39 AM by RudolfReuter --
Changed lines 1-2 from:

TurnupMemstickSyslog, How to use the syslog with turnup MEMSTICK

to:

TurnupMemstickSyslog, How to use the syslog with turnup memstick

January 04, 2009, at 08:35 AM by RudolfReuter --
Changed lines 3-5 from:

If you want to use your NSLU2 with SlugOS/BE and a Memstick only as mass storage, the turnup script for setting up your operating system, configures syslog to use a RAM-buffer instead of the file system (/var/log/messages). Please see /etc/syslog.conf DESTINATION="buffer". The commands to use syslog are in the busybox.

to:

If you want to use your NSLU2 with SlugOS/BE and a Memstick only as mass storage, the turnup script for setting up your operating system configures syslog to use a RAM-buffer instead of the file system (/var/log/messages). Please see /etc/syslog.conf DESTINATION="buffer". The commands to use syslog are in the busybox.

January 04, 2009, at 08:35 AM by RudolfReuter --
Changed lines 1-2 from:

TurnupMemstickSyslog, How to use the syslog with turnup memstick

to:

TurnupMemstickSyslog, How to use the syslog with turnup MEMSTICK

January 04, 2009, at 08:34 AM by RudolfReuter --
Changed line 17 from:

import syslog@\\

to:

import syslog\\

January 04, 2009, at 08:33 AM by RudolfReuter --
Changed lines 17-18 from:

import syslog@ syslog.syslog("test2")

to:

import syslog@
syslog.syslog("test2")\\

January 04, 2009, at 08:33 AM by RudolfReuter --
Changed lines 16-18 from:

If you want to use syslog from Python: import syslog@ syslog.syslog("test2")

to:

If you want to use syslog from Python:
import syslog@ syslog.syslog("test2")

January 04, 2009, at 08:32 AM by RudolfReuter --
Deleted line 13:

=]

Changed lines 16-22 from:

2009-01-04 RudolfReuter?

to:

If you want to use syslog from Python: import syslog@ syslog.syslog("test2") logread: Jan 4 08:31:45 (none) user.info python: test2

2009-01-04 RudolfReuter

January 04, 2009, at 08:27 AM by RudolfReuter --
Added lines 1-17:

TurnupMemstickSyslog, How to use the syslog with turnup memstick

If you want to use your NSLU2 with SlugOS/BE and a Memstick only as mass storage, the turnup script for setting up your operating system, configures syslog to use a RAM-buffer instead of the file system (/var/log/messages). Please see /etc/syslog.conf DESTINATION="buffer". The commands to use syslog are in the busybox.

(:table border=1 width=100% bgcolor=#ffffff:) (:cell:)

 Legend: ">" means user shell, "$" means root shell
 > logname      # Print the name of the current user.
 > logger test  # puts the text "test" in syslog
 $ logread      # read out syslog (normal /var/log/messages)
 Jan  4 08:23:19 (none) user.notice rudi: test
 $ logread -f   # show the syslog input instant until you hit CTRL C

=] (:tableend:)

2009-01-04 RudolfReuter?

view · edit · print · history · Last edited by RudolfReuter.
Originally by RudolfReuter.
Page last modified on January 20, 2009, at 06:41 AM