[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Where is the client data stored in hobbit server?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Where is the client data stored in hobbit server?
- From: "Ari Syrup" <arisyrup (at) gmail.com>
- Date: Thu, 11 Oct 2007 08:31:07 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=eFzi4dM/koQkF9e7XEzAO/srnZoT2SjbPIwAu9q/kt4=; b=llz3+x/drJCmd12xESty2FjG+18KkZnzlO8xDtZMUaut3AZLwY+OAiA4saWc/2htXwrQ8L1iUK9/ppVZ8BneZgdU/qPQF6h2lqfRBXfu9cQ2JG/MCRxmZVNjCtCC4Kz960XRW35lEVdebyOqmvNxXOtroOi/gEW6X6HKWhKHxL8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=Dqt/ObJndolYykuuGmLw1b3GWokzMbkO4q++hXsdg5W0ZdmhXjCeGhvoe0YYD8Teorap2Z0VGp9wyBL2vkrGY+6MWH+GqUUS+Ww2/kxqGFNoAd/CtydxN957SJs5iXJ6Ic7+hvplDNwjx2GXSk/Qxu6zYrwbh9AQzu6+kkrtXoY=
- References: <a2f2ee400710100340r3446d089w6899bda1898efa84 (at) mail.gmail.com> <20071010114831.GA19149 (at) hswn.dk>
Henrik,
Thank you very much!! The information is really helpful for me not only to
implement the script but to understand the hobbit design.
I really look forward to the version 4.3.0 release. ( Hope all the regex
work fine !! ).
2007/10/10, Henrik Stoerner <henrik (at) hswn.dk>:
>
> On Wed, Oct 10, 2007 at 07:40:05PM +0900, Ari Syrup wrote:
> > I would like to implement a customized script to parse all the lines of
> the
> > "Client data" and send an alert if certain keyword matches. I think it
> would
> > be nice because you don't have to implement it in all the client
> > sides.....Definitely there are many people who are interested in it ???
> > And I can't figure out where the data is stored in the hobbit server
> side.
> >
> > My question is,,,,Where is the "Client data" stored in the hobbit server
> > side? Please help me with finding it...
>
> The client data are stored in memory.
>
> There are two ways you can do this.
>
> 1) You can use the command
> bb 127.0.0.1 "clientlog HOSTNAME"
> to fetch the current client data, then do your processing.
>
> 2) (My recommended solution) Write your script as a Hobbit server-
> side extension, and run it on the server as
> bbcmd hobbitd_channel --channel=client YOURSCRIPT
> Your script would get all of the client data fed on STDIN,
> beginning with a line "@@client...|HOSTNAME|..." and
> ending with "@@". Try running (as the hobbit user)
> bbcmd hobbitd_channel --channel=client cat
> and watch the data that is generated.
>
>
> Regards,
> Henrik
>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
>
>
>