Re: Kernel log mechanism: How to log messages in a different file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Bruce, On my system,

[rango@localhost:] locate syslog.conf
/etc/rsyslog.conf
/etc/init/rsyslog.conf
/usr/share/man/man5/rsyslog.conf.5.gz
/var/lib/dpkg/info/rsyslog.conffiles

Also there is a configuration file under
/etc/rsyslog.d/50-default.conf which has
the rules for logging messages in various files, I guess I need to
edit this file.
As of now I'm also looking into the information available here:
http://wiki.rsyslog.com/index.php/Configuration_Samples

Regards,
Amit

On Sat, Jun 25, 2011 at 7:19 PM, Bruce Rowen <browen@xxxxxxxxxxxx> wrote:
> syslog.conf
>
> On Jun 25, 2011, at 7:40 AM, amit mehta wrote:
>
>> Hi,
>>
>> I've written some kernel modules using kprobes infrastructure
>> to grab some more information on network packets. I've lots of
>> printk which by default show up in syslog file(/var/log/messages),
>> I was wondering if there are some method to redirect my printkS
>> to appear in somewhere else(say /var/log/netlog).
>> On a busy system, it gets little cluttered with other logs. Of-course
>> i can grep for my own custom messages but it would be lot more
>> convenient if i can redirect my messages in  a separate log file.
>>
>> Considering above can be done, then what about dmesg ?
>> will they still show up in dmesg output ?
>>
>> Regards,
>> Amit
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies@xxxxxxxxxxxxxxxxx
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies@xxxxxxxxxxxxxxxxx
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux