[Bro-Dev] [JIRA] (BIT-1301) Log::add_filter should have a transform func

Adam Slagell (JIRA) jira at bro-tracker.atlassian.net
Thu Jan 7 11:36:00 PST 2016


     [ https://bro-tracker.atlassian.net/browse/BIT-1301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adam Slagell updated BIT-1301:
------------------------------
    Priority: Low  (was: Normal)

> Log::add_filter should have a transform func
> --------------------------------------------
>
>                 Key: BIT-1301
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1301
>             Project: Bro Issue Tracker
>          Issue Type: New Feature
>          Components: Bro
>            Reporter: Justin Azoff
>            Assignee: Justin Azoff
>            Priority: Low
>              Labels: logging
>             Fix For: 2.5
>
>
> One should be able to do something like
> {code}
> Log::add_filter(HTTP::LOG, [
>     $transform=function(rec: HTTP:Info): HTTP::Info {
>         #modify rec somehow
>     }
> ]);
> {code}
> Not sure if it should modify the record in place, or return the modified version.
> This could allow the user to do similar things to include/exclude, but on a more granular level.



--
This message was sent by Atlassian JIRA
(v7.1.0-OD-03-049#71001)


More information about the bro-dev mailing list