[dtrace-discuss] forward output from Dtrace to database
Adam Leventhal
ahl at eng.sun.com
Sat Feb 10 05:47:41 PST 2007
Hi Jack,
DTrace has an undocumented freopen() action that redirects its output to a
given file, and the documented system() action that can invoke arbitrary
commands. Would it be possible to have a script that dumps its output to a
temporary file and then invokes some command or script that forwards that
output to your database?
Adam
On Thu, Feb 08, 2007 at 10:35:13PM -0800, jack wrote:
> Hello Everyone,
>
> I'm trying to forward the output from Dtrace to a database, and I don't think there is a connector do this.
>
> I attemp to used a Java program to run my Dtrace program, by using the .exec() method, and then tried to process the output from the running Dtrace program.
>
> The problem is that the Java Program cann't catch the output from the Dtrace program, because the Dtrace program only output something once a while.
>
> Does anybody have other aproaches or ideas? Thanks in advance for any help.
>
>
> This message posted from opensolaris.org
> _______________________________________________
> dtrace-discuss mailing list
> dtrace-discuss at opensolaris.org
--
Adam Leventhal, Solaris Kernel Development http://blogs.sun.com/ahl
More information about the dtrace-discuss
mailing list