IS it possible to send Kernel Messages from syslog-ng to a characther device node

347 views Asked by At

I am running a USB Kernel module and it prints messages via printk(). I am using syslog-ng(3.4.5) ,based on the method shown in this link ---> http://www.stackoverflow.com/questions/12500273/is-is-possible-to-pipe-kernel-messages-from-a-specific-process-to-a-file iam filtering out messages based on tags and sending them to an emlog 0.52 based characther device file (/tmp/hello). At the same time i did a simple read (isssued cat /tmp/hello) on the device file. Problem is i am unable to get any messages into /tmp/hello , Is it possible to redirect messages from syslog-ng to a characther device file?? or Is there any easy way to accomplish this?

I was able to get messages by using command line "klogd" ,but i cannot filter out taged messages.

0

There are 0 answers