estreamer

SourceFire eStream client Python library


Keywords
sample, setuptools, development
License
Apache-2.0
Install
pip install estreamer==0.1.1

Documentation

eStreamer

SourceFire eStreamer python client library

Usage

See the examples/ directory for an example client

You need the following:

Plugins

The plugin system uses an autoload and auto-unload mechanism in order to add or remove plugins without needing to restart. Simply drop a plugin into the plugins/ directory and it will pick it up and register (and use it). Conversely, remove the plugin from the directory and it will unregister the plugin (and not use it)

To create plugins, you will need to inherit the Plugin class. In addition, you will need to create a class variable (dictionary) named __info__ that contains:

  • description: description of the plugin
  • author: name of the author (and optionally contact, etc.)
  • version: version of the plugin
  • callback: the string name of the callback method (the function to be called in your plugin to do its thing)

The callback function will receive each record (alert that is processed)

Example:

from plugin import Plugin

class YourPlugin(Plugin):
    __info__ = {
        'description': 'my plugin',
        'author'     : 'my name',
        'version'    : '0.1',
        'callback'   : 'my_function',
    }

    def my_function(self, record):
        print(record)