[Bro-Dev] [JIRA] (BIT-1274) Moving GeoIP Code to Plugin

Robin Sommer (JIRA) jira at bro-tracker.atlassian.net
Thu Oct 23 14:56:07 PDT 2014

    [ https://bro-tracker.atlassian.net/browse/BIT-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18510#comment-18510 ] 

Robin Sommer commented on BIT-1274:

I've just pushed a small change to master that's necessary to get this running; there was an ordering issue in terms of how scripts get loaded. 

I've tweaked your code a bit more, including the namespacing Seth suggested; patch attached. With that it now works for me:

# cat a.bro

@load Bro/GeoIP

event bro_init()
    print GeoIP::lookup_location(;

# bro ./a.bro
[country_code=DE, region=02, city=Munich, latitude=48.150002, longitude=11.5833]

> Moving GeoIP Code to Plugin
> ---------------------------
>                 Key: BIT-1274
>                 URL: https://bro-tracker.atlassian.net/browse/BIT-1274
>             Project: Bro Issue Tracker
>          Issue Type: Improvement
>          Components: Bro
>            Reporter: AK
> I've started moving the GeoIP code to a plugin. The branch of Bro I'm working from is here: https://github.com/anthonykasza/bro/tree/topic/akasza/geoplugin. 
> The source for the plugin is here: https://github.com/anthonykasza/Bro_GeoIP.
> Any pointers would be appreciated.

This message was sent by Atlassian JIRA

More information about the bro-dev mailing list