NSLU2-Linux
view · edit · print · history

HowTo.HowToRunYourOwnSyslogd History

Hide minor edits - Show changes to markup

June 17, 2007, at 03:08 PM by caplink811 -- changed link to syslogd.zip
Changed line 20 from:
  • Get a patched syslogd binary from http://www.jrbnet.de/texte/syslogd.zip
to:
  • Get a patched syslogd binary from http://jrbnet.de/joomla/component/option,com_remository/Itemid,45/func,startdown/id,1/
January 14, 2007, at 07:25 PM by fcarolo --
Changed lines 1-4 from:

Better instructions about running syslog-ng under Unslug? and other Optware? platforms is available at the syslog-ng for Optware page. There you can also find links to the original documentation for syslog_ng.

Warning:: the rest of this page is about a patched, older version of syslog for Unslung. It is strongly recommended that you use the current Optware package for syslog-ng instead of this older version.

to:

Better instructions about running syslog-ng under Unslug and other Optware platforms is available at the syslog-ng for Optware page. There you can also find links to the original documentation for syslog_ng.

Warning:: the rest of this page is about a patched, older version of syslog for Unslung. It is strongly recommended that you use the current Optware package for syslog-ng instead of this older version.

Changed lines 6-7 from:
to:
January 14, 2007, at 07:24 PM by fcarolo -- Link to updated info and warning about old stuff
Changed lines 1-2 from:

This all needs tiding up to make it easier to read. Oh for an ipkg install syslogd...

to:

Better instructions about running syslog-ng under Unslug? and other Optware? platforms is available at the syslog-ng for Optware page. There you can also find links to the original documentation for syslog_ng.

Warning:: the rest of this page is about a patched, older version of syslog for Unslung. It is strongly recommended that you use the current Optware package for syslog-ng instead of this older version.


Changed lines 60-62 from:

it generates lot of traffic (with non local DNS).

to:

it generates lot of traffic (with non local DNS).

May 25, 2005, at 10:10 AM by Christopher --
Changed line 55 from:

it generate traffic maybe not usefull.

to:

it generates lot of traffic (with non local DNS).

May 24, 2005, at 08:36 PM by Christopher --
Changed lines 52-53 from:

+Question ?

to:

Question ?

May 24, 2005, at 08:35 PM by Christopher -- DNS query syslogd
Changed lines 50-55 from:

unfortunately the GNU website doesn't appear to have any documentation, otherwise I'd have recommended that

to:

unfortunately the GNU website doesn't appear to have any documentation, otherwise I'd have recommended that

+Question ?

It seems that syslogd sends DNS query to resolve IP address to hostname very often. Is there some flag to avoid this, since it generate traffic maybe not usefull.

February 03, 2005, at 06:02 PM by paulhar --
Added lines 1-2:

This all needs tiding up to make it easier to read. Oh for an ipkg install syslogd...

February 03, 2005, at 06:00 PM by paulhar --
Added lines 13-14:
  • Unzip to extract a single syslogd binary file.
  • Move this file into /opt/sbin
Deleted line 18:
Deleted line 20:
Changed lines 22-23 from:
  • Untar it, patch syslogd.c, run "configure" and "make", don't make "install", (cause we only need the syslogd) and copy the resulting binary to a directory of your choice (I prefer /opt/local/libexec).
to:
  • Untar it, patch syslogd.c, run "configure" and "make", don't make "install", (cause we only need the syslogd) and copy the resulting binary into /opt/sbin
Changed lines 32-40 from:
  • and add a startfile like S11syslogd to /opt/etc/init.d and make it executable (chmod 755 S11syslogd)
to:
  • Add a startfile like S11syslogd to /opt/etc/init.d and make it executable (chmod 755 S11syslogd)
  #!/bin/sh

  if [ -n "`pidof syslogd`" ]; then
      /bin/killall syslogd 2>/dev/null
  fi

  /opt/sbin/syslogd -r -f/opt/etc/syslogd.conf
Deleted lines 41-44:
#!/bin/sh
#
/opt/local/libexec/syslogd -r -f/opt/etc/syslog.conf
\\
Added lines 46-47:

You probably want something like this:

  *.info /var/log/syslogd.log
February 02, 2005, at 04:43 PM by paulhar --
Changed line 7 from:

Or, you want to have a syslogd which doesn't ignore a config file.\\

to:

Or, you want to have a syslogd which doesn't ignore a config file. This is important if you want other services to log correctly.\\

February 02, 2005, at 04:40 PM by paulhar --
Added line 31:

is this the right way? After a reflash it'll vanish?

Added lines 40-43:

Understanding syslogd.conf:

See this http://docs.hp.com/en/B2355-90681/syslogd.1M.html HP syslogd website for the basics of using syslogd. unfortunately the GNU website doesn't appear to have any documentation, otherwise I'd have recommended that

January 25, 2005, at 06:20 PM by caplink811 --
Changed lines 6-8 from:

(see http://lists.gnu.org/archive/html/bug-inetutils/2003-02/msg00006.html)

to:

(see http://lists.gnu.org/archive/html/bug-inetutils/2003-02/msg00006.html)
Or, you want to have a syslogd which doesn't ignore a config file.
(see http://www.busybox.net/downloads/BusyBox.html)

January 16, 2005, at 08:16 PM by tman --
Changed line 4 from:

or syslogd from inetutils-1.4.2 have a bug, so it couldn't

to:

or syslogd from inetutils-1.4.2 has a bug, so it couldn't

Changed line 6 from:

(see http://lists.gnu.org/archive/html/bug-inetutils/2003-02/msg00006.html )

to:

(see http://lists.gnu.org/archive/html/bug-inetutils/2003-02/msg00006.html)

Added line 8:

Precompiled patched binary:

Changed line 10 from:

If you would go the easy way

to:
  • Get a patched syslogd binary from http://www.jrbnet.de/texte/syslogd.zip
Changed line 12 from:
  • get a patched syslogd from http://www.jrbnet.de/texte/syslogd.zip
to:

Manual compilation:

Changed line 14 from:

or

to:
Changed lines 16-21 from:

Go the hard way

  • Read and follow
    http://www.nslu2-linux.org/wiki/HowTo/NativeFloatingPointToolchain
  • get and install some tools (bash,bzip2,coreutils,diffutils,flex,gawk,m4,make,patch,tar)\\
to:
  • Get and install tools (bash, bzip2, coreutils, diffutils, flex, gawk, m4, make, patch, tar)\\
Changed lines 19-22 from:
  • get the source from gnu
    http://ftp.gnu.org/gnu/inetutils/inetutils-1.4.2.tar.gz
  • untar it, patch syslogd.c, run "configure" and "make", don't make "install", (cause we only need the syslogd) and copy the resulting binary to a directory of your choice (I prefer /opt/local/libexec).
to:
  • Get the source from GNU: http://ftp.gnu.org/gnu/inetutils/inetutils-1.4.2.tar.gz
Added line 21:
  • Untar it, patch syslogd.c, run "configure" and "make", don't make "install", (cause we only need the syslogd) and copy the resulting binary to a directory of your choice (I prefer /opt/local/libexec).
Changed line 23 from:

Let it run

to:

How to install on the NSLU2:

Changed lines 25-26 from:
  • To prevent the original from starting, you must edit the
    /etc/inittab
to:
  • To prevent the original from starting, you must edit /etc/inittab and comment out the syslogd line.
Changed line 30 from:
  • and add a startfile like S11syslogd to your /opt/etc/init.d and make it executable (chmod 755 S11syslogd)
to:
  • and add a startfile like S11syslogd to /opt/etc/init.d and make it executable (chmod 755 S11syslogd)
January 16, 2005, at 08:06 PM by caplink811 --
Changed line 4 from:

or syslogd from inetutils-1.4.2 have a bug, so they couldn't

to:

or syslogd from inetutils-1.4.2 have a bug, so it couldn't

Changed line 11 from:

get a patched syslogd from http://www.jrbnet.de/texte/syslogd.zip

to:
  • get a patched syslogd from http://www.jrbnet.de/texte/syslogd.zip
Changed lines 17-20 from:

Read and follow
http://www.nslu2-linux.org/wiki/HowTo/NativeFloatingPointToolchain
get and install some tools (bash,bzip2,coreutils,diffutils,flex,gawk, m4,make,patch,tar), get the source from gnu

to:
  • Read and follow
    http://www.nslu2-linux.org/wiki/HowTo/NativeFloatingPointToolchain
  • get and install some tools (bash,bzip2,coreutils,diffutils,flex,gawk,m4,make,patch,tar)
    ipkg (Manual is at http://handhelds.org/moin/moin.cgi/Ipkg) will do this for you
  • get the source from gnu\\
Deleted lines 24-26:

untar it, patch syslogd.c, run "configure" and "make", don't make "install", (cause we only need the syslogd) and copy the resulting binary to a directory of your choice (I prefer /opt/local/libexec).

Added line 26:
  • untar it, patch syslogd.c, run "configure" and "make", don't make "install", (cause we only need the syslogd) and copy the resulting binary to a directory of your choice (I prefer /opt/local/libexec).
Deleted line 27:

Let this thing run

Changed line 29 from:

To prevent the original from starting you must edit the /etc/inittab

to:

Let it run

Changed lines 31-34 from:

# slog:unknown:/sbin/syslogd -n\\

to:
  • To prevent the original from starting, you must edit the
    /etc/inittab
# slog:unknown:/sbin/syslogd -n\\
Changed lines 37-38 from:

and add a startfile like S11syslogd to your /opt/etc/init.d and make it executable (chmod 755 S11syslogd)

to:
  • and add a startfile like S11syslogd to your /opt/etc/init.d and make it executable (chmod 755 S11syslogd)
Changed line 39 from:

#!/bin/sh\\

to:
#!/bin/sh\\
Changed lines 41-42 from:

/opt/local/libexec/syslogd -r -f/opt/etc/syslog.conf

to:

/opt/local/libexec/syslogd -r -f/opt/etc/syslog.conf
\\

January 16, 2005, at 03:11 PM by caplink811 --
Changed line 1 from:

Why should I do this?

to:

Why should I do this?

Changed line 5 from:

log messages from remote machines.

to:

log messages from remote machines.\\

Changed lines 9-10 from:

1.a If you would go the easy way, get a patched syslogd from http://www.jrbnet.de/texte/syslogd.zip

to:

If you would go the easy way

get a patched syslogd from http://www.jrbnet.de/texte/syslogd.zip

Changed lines 15-16 from:

1.b go the hard way, read and follow http://www.nslu2-linux.org/wiki/HowTo/NativeFloatingPointToolchain

to:

Go the hard way

Read and follow
http://www.nslu2-linux.org/wiki/HowTo/NativeFloatingPointToolchain\\

Changed lines 27-28 from:

2.Let this thing run

to:

Let this thing run

Changed line 31 from:
  1. slog:unknown:/sbin/syslogd -n
to:

# slog:unknown:/sbin/syslogd -n\\

Changed lines 37-38 from:
  1. !/bin/sh
to:

#!/bin/sh
#\\

January 16, 2005, at 02:59 PM by caplink811 --
Changed lines 1-37 from:

Describe HowToRunYourOwnSyslogd here.

to:

Why should I do this?

Because the /sbin/syslogd (which is linked to /bin/busybox), or syslogd from inetutils-1.4.2 have a bug, so they couldn't log messages from remote machines. (see http://lists.gnu.org/archive/html/bug-inetutils/2003-02/msg00006.html )

1.a If you would go the easy way, get a patched syslogd from http://www.jrbnet.de/texte/syslogd.zip

or

1.b go the hard way, read and follow http://www.nslu2-linux.org/wiki/HowTo/NativeFloatingPointToolchain get and install some tools (bash,bzip2,coreutils,diffutils,flex,gawk, m4,make,patch,tar), get the source from gnu http://ftp.gnu.org/gnu/inetutils/inetutils-1.4.2.tar.gz untar it, patch syslogd.c, run "configure" and "make", don't make "install", (cause we only need the syslogd) and copy the resulting binary to a directory of your choice (I prefer /opt/local/libexec).

2.Let this thing run To prevent the original from starting you must edit the /etc/inittab

  1. slog:unknown:/sbin/syslogd -n

klog:unknown:/sbin/klogd -n

and add a startfile like S11syslogd to your /opt/etc/init.d and make it executable (chmod 755 S11syslogd)

  1. !/bin/sh

/opt/local/libexec/syslogd -r -f/opt/etc/syslog.conf

where -r enable remote logging and -f is the configuration file.

view · edit · print · history · Last edited by caplink811.
Based on work by fcarolo, Christopher, paulhar, caplink811, and tman.
Originally by caplink811.
Page last modified on June 17, 2007, at 03:08 PM