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

Jon Siwek (JIRA) jira at bro-tracker.atlassian.net
Fri Mar 13 13:20:01 PDT 2015


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

Jon Siwek updated BIT-1301:
---------------------------
    Fix Version/s: 2.5

> 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
>              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
(v6.4-OD-15-055#64014)


More information about the bro-dev mailing list