[Oisf-users] JSON output for alerts

Brian Rectanus brectanu at gmail.com
Tue Mar 12 13:37:45 UTC 2013


On Tuesday, March 12, 2013 at 4:06 AM, Victor Julien wrote:
> On 03/11/2013 03:29 PM, Brian Rectanus wrote:
> > On Thu, Mar 7, 2013 at 5:48 AM, Victor Julien <lists at inliniac.net> wrote:
> > > On 03/07/2013 12:46 PM, Aaron Nikula wrote:
> > > > All,
> > > > 
> > > > I have been experimenting with the /files/-/json/./log /output and I
> > > > like it a lot. I was wondering if I could also output regular alerts to
> > > > a JSON format? If not, are there any plans to implement that feature?
> > > > 
> > > 
> > > 
> > > I'd like to do that as well. Have been thinking about adding this as an
> > > option to all outputs. Care to open a feature ticket?
> > > 
> > 
> > 
> > FYI, take a look at yajl lib for JSON if your looking for a lib.
> > Seems pretty nice and very light. We are using it in ironbee now.
> > 
> > http://lloyd.github.com/yajl/
> 
> Thanks Brian.
> 
> We already use libjansson for the unix socket protocol, so using this
> would require some refactoring. Do you think this yajl will bring big
> benefits over libjansson?
> 


Depends on what you use it for. Yajl allows for stream based parsing directly into your own structures. No need to parse everything into a tree of nodes and then read through that. So, I think yajl is more efficiently using resources, but at the cost of some extra code complexity sue to having to write callbacks for each node type. We needed the streaming parser for potentially large json structures coming in chunks. Yajl is nice, but I think libjannson is as well. They just solve different needs. For instance you could build libjannson on top of yajl. 

-B
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-users/attachments/20130312/7589708a/attachment-0002.html>


More information about the Oisf-users mailing list