syslog configuration for busybox (1.23)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

syslog configuration for busybox (1.23)

Jump to solution
4,064 Views
hemwant
Contributor IV

I am using a P5040 board, and currently using the utility syslogd from busybox which was available in rootfs package of BSP.I am facing a problem that the syslogd when run using following arguments

syslogd -b 5 -s 1000

the syslogd daemon fails to run pointing an error at line no 10. I am trying to generate 40 logs using the above configuration.

My syslog.conf file is mentioned below.

*.info /dev/console
local0.* /var/log/dwdm/cmlog
local1.* /var/log/dwdm/fmlog
local2.* /var/log/dwdm/pmlog
local3.* /var/log/dwdm/tilog
local4.* /var/log/dwdm/tpilog
local5.* /var/log/dwdm/tpnlog
local6.* /var/log/dwdm/log
local7.* /var/log/dwdm/esalog
kern.* /var/log/kern.log
local8.* /var/log/dwdm/sdlog
local9.* /var/log/dwdm/cmgtlog
local10.* /var/log/dwdm/ocmlog
local11.* /var/log/dwdm/scplog
local12.* /var/log/dwdm/dblog
local13.* /var/log/dwdm/smlog
local14.* /var/log/dwdm/lmilog
local15.* /var/log/dwdm/ocscclog
local16.* /var/log/dwdm/mtlog
local17.* /var/log/dwdm/fmdbglog
local18.* /var/log/dwdm/nmlog
local19.* /var/log/dwdm/eehlog
local20.* /var/log/dwdm/ptclog
local21.* /var/log/dwdm/tpccomlog
local22.* /var/log/dwdm/traprecvlog
local23.* /var/log/dwdm/lmiehlog
local24.* /var/log/dwdm/rllog
local25.* /var/log/dwdm/dscomlog
local26.* /var/log/dwdm/ftlog
local27.* /var/log/dwdm/osclog
local28.* /var/log/dwdm/mplog
local29.* /var/log/dwdm/pmtmrlog
local30.* /var/log/dwdm/lcdlog
local31.* /var/log/dwdm/echlog
local32.* /var/log/dwdm/log
local33.* /var/log/dwdm/log
local34.* /var/log/dwdm/log
local35.* /var/log/dwdm/log
local36.* /var/log/dwdm/log
local37.* /var/log/dwdm/log
local38.* /var/log/dwdm/log
local39.* /var/log/dwdm/log
local40.* /var/log/dwdm/log

Any solution to the above issue so that i can generate a log files for 40 processes will be appreciated.

0 Kudos
Reply
1 Solution
3,508 Views
hemwant
Contributor IV

modification were done in busybox(1.23.2) source code to accomodate required changes.

View solution in original post

0 Kudos
Reply
6 Replies
4,049 Views
yipingwang
NXP TechSupport
NXP TechSupport

First you could use rootfs filesystem from Linux SDK 2.0 release, please download "Image: QorIQ Linux SDK v2.0 PPCE5500 IMAGE" from https://www.nxp.com/design/software/embedded-software/linux-software-and-development-tools/linux-sdk...

Then mount this ISO and use rootfs filesystem fsl-image-core-p5040ds.ext2.gz.u-boot in p5040ds folder.

$ busybox syslogd -b 5 -s 1000

$ cat /etc/syslog.conf

*.info /dev/console
local0.* /var/log/dwdm/cmlog
local1.* /var/log/dwdm/fmlog
local2.* /var/log/dwdm/pmlog
local3.* /var/log/dwdm/tilog
local4.* /var/log/dwdm/tpilog
local5.* /var/log/dwdm/tpnlog
local6.* /var/log/dwdm/log
local7.* /var/log/dwdm/esalog
kern.* /var/log/kern.log

 

 

 

 

 

0 Kudos
Reply
4,041 Views
hemwant
Contributor IV

This is working for my board.

But I need to configure log local0-local39, in that it shows error error at line 10 of syslog.conf.

0 Kudos
Reply
4,039 Views
yipingwang
NXP TechSupport
NXP TechSupport

The facilities local0 to local7 are "custom" unused facilities that syslog provides for the user.

0 Kudos
Reply
4,029 Views
hemwant
Contributor IV

The facility of local0-local39 is working with P1022 board, but it is creating issue in P5040 board. We have also tried the same custom settings of syslog in our earlier 85xx board too.

Donot have any idea why this custom setting of local0-local39 is not working with P5040 board.

0 Kudos
Reply
4,025 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please refer to https://man7.org/linux/man-pages/man3/syslog.3.html

       LOG_LOCAL0 through LOG_LOCAL7
              reserved for local use 

so only local0 to local7 are valid. 

0 Kudos
Reply
3,509 Views
hemwant
Contributor IV

modification were done in busybox(1.23.2) source code to accomodate required changes.

0 Kudos
Reply