* storing the logs
@ 2011-01-31 12:54 mohit verma
[not found] ` <MDAEMON0917201101311840.AA4039490@fibcom.com>
` (2 more replies)
0 siblings, 3 replies; 11+ messages in thread
From: mohit verma @ 2011-01-31 12:54 UTC (permalink / raw)
To: kernelnewbies
hi ,
my module produces some data (very cititcal) and that i want to log that to
some disk residing file like log files. So among several ways like using
syslog (and family) ,audit daemon i am not finding the way to use the
functionalities of any of these subsystems .i mean : practically i am still
unable to do that.
can someone point me to some practical implementations used by some other
modules or some practically sound articles to achieve this?
thanks a lot in advance.
--
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110131/c8b7ef7b/attachment.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Fwd: Permanent Delivery Failure
[not found] ` <MDAEMON0917201101311840.AA4039490@fibcom.com>
@ 2011-01-31 13:21 ` mohit verma
0 siblings, 0 replies; 11+ messages in thread
From: mohit verma @ 2011-01-31 13:21 UTC (permalink / raw)
To: kernelnewbies
---------- Forwarded message ----------
From: MDaemon@fibcom.com <MDaemon@fibcom.com>
Date: Mon, Jan 31, 2011 at 6:40 PM
Subject: Permanent Delivery Failure
To: mohit89mlnc at gmail.com
The attached message had PERMANENT fatal delivery errors!
After one or more unsuccessful delivery attempts the attached message has
been removed from the mail queue on this server. The number and frequency
of delivery attempts are determined by local configuration parameters.
YOUR MESSAGE WAS NOT DELIVERED TO ANY OF IT'S RECIPIENTS!
--- Session Transcript ---
Mon 2011-01-31 18:40:37: Parsing message
<xxxxxxxxxxxxxxxxxx\pd50001451601.msg>
Mon 2011-01-31 18:40:37: * From: mohit89mlnc at gmail.com
Mon 2011-01-31 18:40:37: * To: amit at fibcom.com
Mon 2011-01-31 18:40:37: * Subject: storing the logs
Mon 2011-01-31 18:40:37: * Message-ID: <
AANLkTin7feriYDLgMZtazLQD+yOjU4hgxWs0_KxBSk9P at mail.gmail.com<AANLkTin7feriYDLgMZtazLQD%2ByOjU4hgxWs0_KxBSk9P@mail.gmail.com>
>
Mon 2011-01-31 18:40:37: * Route slip host: 202.71.129.104
Mon 2011-01-31 18:40:37: * Route slip port: 25
Mon 2011-01-31 18:40:37: Attempting SMTP connection to [202.71.129.104]
Mon 2011-01-31 18:40:37: Attempting to send message to smart host
Mon 2011-01-31 18:40:37: Attempting SMTP connection to [202.71.129.104:25]
Mon 2011-01-31 18:40:37: Waiting for socket connection...
Mon 2011-01-31 18:40:37: * Connection established (192.5.1.2:1395 ->
202.71.129.104:25)
Mon 2011-01-31 18:40:37: Waiting for protocol to start...
Mon 2011-01-31 18:40:37: <-- 220 smtp ready smtp.bizmail.net4india.com
Mon 2011-01-31 18:40:37: --> EHLO fibcom.com
Mon 2011-01-31 18:40:37: <-- 250-smtp.bizmail.net4india.com Hello
fibcom.com [203.101.81.201]
Mon 2011-01-31 18:40:37: <-- 250-SIZE 57671680
Mon 2011-01-31 18:40:37: <-- 250-PIPELINING
Mon 2011-01-31 18:40:37: <-- 250 HELP
Mon 2011-01-31 18:40:37: --> MAIL From:<mohit89mlnc@gmail.com> SIZE=5888
Mon 2011-01-31 18:40:37: <-- 250 OK
Mon 2011-01-31 18:40:37: --> RCPT To:<amit@fibcom.com>
Mon 2011-01-31 18:40:37: <-- 550 relay not permitted
--- End Transcript ---
--------------------------------------
LEGAL DISCLAIMER
--------------------------------------
The information contained in this message may be privileged and confidential
and protected from disclosure. If the reader of this message is not the
intended
recipient, or an employee or agent responsible for delivering this message
to the
intended recipient, you are hereby notified that any reproduction,
dissemination
or distribution of this communication is strictly prohibited. If you have
received
this communication in error, please notify us immediately by replying to the
message and deleting it from your computer.
This mail has been checked for viruses. However recipients should undertake
their own virus check. We will not be liable for any losses
Thank you.
Fibcom India Limited
---------- Forwarded message ----------
From: mohit verma <mohit89mlnc@gmail.com>
To: kernelnewbies <kernelnewbies@nl.linux.org>
Date: Mon, 31 Jan 2011 18:24:50 +0530
Subject: storing the logs
hi ,
my module produces some data (very cititcal) and that i want to log that to
some disk residing file like log files. So among several ways like using
syslog (and family) ,audit daemon i am not finding the way to use the
functionalities of any of these subsystems .i mean : practically i am still
unable to do that.
can someone point me to some practical implementations used by some other
modules or some practically sound articles to achieve this?
thanks a lot in advance.
--
........................
*MOHIT VERMA*
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
--
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110131/13945175/attachment-0001.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Fwd: storing the logs
2011-01-31 12:54 storing the logs mohit verma
[not found] ` <MDAEMON0917201101311840.AA4039490@fibcom.com>
@ 2011-01-31 13:22 ` mohit verma
2011-01-31 13:28 ` mohit verma
2 siblings, 0 replies; 11+ messages in thread
From: mohit verma @ 2011-01-31 13:22 UTC (permalink / raw)
To: kernelnewbies
---------- Forwarded message ----------
From: mohit verma <mohit89mlnc@gmail.com>
Date: Mon, Jan 31, 2011 at 6:24 PM
Subject: storing the logs
To: kernelnewbies <kernelnewbies@nl.linux.org>
hi ,
my module produces some data (very cititcal) and that i want to log that to
some disk residing file like log files. So among several ways like using
syslog (and family) ,audit daemon i am not finding the way to use the
functionalities of any of these subsystems .i mean : practically i am still
unable to do that.
can someone point me to some practical implementations used by some other
modules or some practically sound articles to achieve this?
thanks a lot in advance.
--
........................
*MOHIT VERMA*
--
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110131/db7eadde/attachment.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Fwd: storing the logs
2011-01-31 12:54 storing the logs mohit verma
[not found] ` <MDAEMON0917201101311840.AA4039490@fibcom.com>
2011-01-31 13:22 ` Fwd: storing the logs mohit verma
@ 2011-01-31 13:28 ` mohit verma
2011-02-01 1:38 ` Mauro Romano Trajber
2 siblings, 1 reply; 11+ messages in thread
From: mohit verma @ 2011-01-31 13:28 UTC (permalink / raw)
To: kernelnewbies
hi ,
my module produces some data (very cititcal) and that i want to log that to
some disk residing file like log files. So among several ways like using
syslog (and family) ,audit daemon i am not finding the way to use the
functionalities of any of these subsystems .i mean : practically i am still
unable to do that.
can someone point me to some practical implementations used by some other
modules or some practically sound articles to achieve this?
thanks a lot in advance.
--
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110131/f7d71b8d/attachment.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* storing the logs
2011-01-31 13:28 ` mohit verma
@ 2011-02-01 1:38 ` Mauro Romano Trajber
2011-02-01 3:39 ` Greg KH
0 siblings, 1 reply; 11+ messages in thread
From: Mauro Romano Trajber @ 2011-02-01 1:38 UTC (permalink / raw)
To: kernelnewbies
Are you sure you're doing it right ? Reading and writing files from within
the kernel space is bad thing to do.
Read this good article about that: http://www.linuxjournal.com/article/8110
<http://www.linuxjournal.com/article/8110>And if you want to do this
anyway, there are some pieces of code too ;-)
Mauro Romano Trajber
On Mon, Jan 31, 2011 at 11:28 AM, mohit verma <mohit89mlnc@gmail.com> wrote:
>
>
>
> hi ,
>
> my module produces some data (very cititcal) and that i want to log that
> to some disk residing file like log files. So among several ways like using
> syslog (and family) ,audit daemon i am not finding the way to use the
> functionalities of any of these subsystems .i mean : practically i am still
> unable to do that.
>
> can someone point me to some practical implementations used by some other
> modules or some practically sound articles to achieve this?
>
>
> thanks a lot in advance.
>
> --
> ........................
> *MOHIT VERMA*
>
>
>
>
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110131/4572018a/attachment.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* storing the logs
2011-02-01 1:38 ` Mauro Romano Trajber
@ 2011-02-01 3:39 ` Greg KH
[not found] ` <AANLkTik-RMuZqnafF0N8XheBu1aHCeioUv86zb=d7UKr@mail.gmail.com>
0 siblings, 1 reply; 11+ messages in thread
From: Greg KH @ 2011-02-01 3:39 UTC (permalink / raw)
To: kernelnewbies
On Mon, Jan 31, 2011 at 11:38:30PM -0200, Mauro Romano Trajber wrote:
> Are you sure you're doing it right ? Reading and writing files from within
> the kernel space is bad thing to do.
> Read this good article about that: http://www.linuxjournal.com/article/8110
> <http://www.linuxjournal.com/article/8110>And if you want to do this
> anyway, there are some pieces of code too ;-)
Yes, but you really don't want to do that.
Seriously.
Don't.
Bad things will happen and no one will be able to help you.
Use a "real" way to get data from the kernel to userspace (netlink,
pseudo-filesystem, device node, etc.)
good luck,
greg k-h
^ permalink raw reply [flat|nested] 11+ messages in thread
* Fwd: storing the logs
[not found] ` <AANLkTik-RMuZqnafF0N8XheBu1aHCeioUv86zb=d7UKr@mail.gmail.com>
@ 2011-02-06 18:44 ` mohit verma
2011-02-06 18:46 ` mohit verma
1 sibling, 0 replies; 11+ messages in thread
From: mohit verma @ 2011-02-06 18:44 UTC (permalink / raw)
To: kernelnewbies
thanks greg,,
a silly question......please have a look.......
i create a socket to communicate to the user space app to listen to and
responsible for loggin ... via my_sock=netlink_creat_sock()
i create my own logging message format to send it via netlink interface.
then how can i let my module know which process to bind it to? i mean to
bind my socket to any user space application i need the pid of that one ,so
at the very first time how can i initialize the binding process with user
space application?
i hope.. i am clear to u. please let me know if not....i wll try again.
i 'd really appreciate any help.
--
........................
*MOHIT VERMA*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110207/9f41e4cd/attachment.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Fwd: storing the logs
[not found] ` <AANLkTik-RMuZqnafF0N8XheBu1aHCeioUv86zb=d7UKr@mail.gmail.com>
2011-02-06 18:44 ` Fwd: " mohit verma
@ 2011-02-06 18:46 ` mohit verma
2011-02-08 22:59 ` Lutz
2011-02-09 10:06 ` Lutz
1 sibling, 2 replies; 11+ messages in thread
From: mohit verma @ 2011-02-06 18:46 UTC (permalink / raw)
To: kernelnewbies
thanks greg,,
a silly question........please have a look.......
i create a socket to communicate to the user space app to listen to and
responsible for loggin ... via my_sock=netlink_creat_sock()
i create my own logging message format to send it via netlink interface.
then how can i let my module know which process to bind it to? i mean to
bind my socket to any user space application i need the pid of that one ,so
at the very first time how can i initialize the binding process with user
space application?
i hope.. i am clear to u. please let me know if not....i wll try again.
i 'd really appreciate any help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110207/779339b2/attachment.html
^ permalink raw reply [flat|nested] 11+ messages in thread
* Fwd: storing the logs
2011-02-06 18:46 ` mohit verma
@ 2011-02-08 22:59 ` Lutz
2011-02-09 10:06 ` Lutz
1 sibling, 0 replies; 11+ messages in thread
From: Lutz @ 2011-02-08 22:59 UTC (permalink / raw)
To: kernelnewbies
Am Montag, den 07.02.2011, 00:16 +0530 schrieb mohit verma:
> i create a socket to communicate to the user space app to listen to
> and responsible for loggin ... via my_sock=netlink_creat_sock()
> i create my own logging message format to send it via netlink
> interface.
> then how can i let my module know which process to bind it to? i
> mean to bind my socket to any user space application i need the pid of
> that one
haven't tried netlink so maybe this won't be much help.
isn't it possible to just bind to somewhere on the network using
int kbind(ksocket_t socket, struct sockaddr *address, int address_len)
from http://ksocket.sourceforge.net/
?
if i'm not mistaken you won't need any pid
good luck,
Lutz
^ permalink raw reply [flat|nested] 11+ messages in thread
* Fwd: storing the logs
2011-02-06 18:46 ` mohit verma
2011-02-08 22:59 ` Lutz
@ 2011-02-09 10:06 ` Lutz
2011-02-09 10:48 ` Ashok Babu
1 sibling, 1 reply; 11+ messages in thread
From: Lutz @ 2011-02-09 10:06 UTC (permalink / raw)
To: kernelnewbies
Am Montag, den 07.02.2011, 00:16 +0530 schrieb mohit verma:
> i create a socket to communicate to the user space app to listen to
> and responsible for loggin ... via my_sock=netlink_creat_sock()
> i create my own logging message format to send it via netlink
> interface.
> then how can i let my module know which process to bind it to? i
> mean to bind my socket to any user space application i need the pid of
> that one
haven't tried netlink so maybe this won't be much help.
isn't it possible to just bind to somewhere on the network using
int kbind(ksocket_t socket, struct sockaddr *address, int address_len)
from http://ksocket.sourceforge.net/ ?
if i'm not mistaken you won't need any pid
good luck,
Lutz
^ permalink raw reply [flat|nested] 11+ messages in thread
* Fwd: storing the logs
2011-02-09 10:06 ` Lutz
@ 2011-02-09 10:48 ` Ashok Babu
0 siblings, 0 replies; 11+ messages in thread
From: Ashok Babu @ 2011-02-09 10:48 UTC (permalink / raw)
To: kernelnewbies
> Am Montag, den 07.02.2011, 00:16 +0530 schrieb mohit verma:
>
>> i create a socket to communicate to the user space app to listen to
>> and responsible for loggin ... via ? my_sock=netlink_creat_sock()
>> i create my own ?logging message format to send it via netlink
>> interface.
>> then ?how can i let my module know ?which process to bind it to? i
>> mean to bind my socket to any user space application i need the pid of
>> that one
>
> haven't tried netlink so maybe this won't be much help.
> isn't it possible to just bind to somewhere on the network using
>
> int kbind(ksocket_t socket, struct sockaddr *address, int address_len)
>
> from http://ksocket.sourceforge.net/ ??
>
> if i'm not mistaken you won't need any pid
>
> good luck,
>
> Lutz
>
Why don't you use debugfs or procfs and use the application to read from it ?
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2011-02-09 10:48 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-31 12:54 storing the logs mohit verma
[not found] ` <MDAEMON0917201101311840.AA4039490@fibcom.com>
2011-01-31 13:21 ` Fwd: Permanent Delivery Failure mohit verma
2011-01-31 13:22 ` Fwd: storing the logs mohit verma
2011-01-31 13:28 ` mohit verma
2011-02-01 1:38 ` Mauro Romano Trajber
2011-02-01 3:39 ` Greg KH
[not found] ` <AANLkTik-RMuZqnafF0N8XheBu1aHCeioUv86zb=d7UKr@mail.gmail.com>
2011-02-06 18:44 ` Fwd: " mohit verma
2011-02-06 18:46 ` mohit verma
2011-02-08 22:59 ` Lutz
2011-02-09 10:06 ` Lutz
2011-02-09 10:48 ` Ashok Babu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).