Skip to main content

SourceFire eStream client Python library

Project description

=========
eStreamer
=========

SourceFire eStreamer python client library

Usage
^^^^^
See the `examples/ <https://github.com/spohara79/estreamer/examples>`_ directory for an example client

You need the following:

- Configure SourceFire for the client authentication using this: `http://www.cisco.com/c/en/us/td/docs/security/firesight/540/api/estreamer/EventStreamerIntegrationGuide/ConfiguringEstreamer.html#38601 <http://www.cisco.com/c/en/us/td/docs/security/firesight/540/api/estreamer/EventStreamerIntegrationGuide/ConfiguringEstreamer.html#38601>`_

- Get the SourceFire server certificate (for TLS verification)


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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

estreamer-0.1.1.tar.gz (15.1 kB view details)

Uploaded Source

File details

Details for the file estreamer-0.1.1.tar.gz.

File metadata

  • Download URL: estreamer-0.1.1.tar.gz
  • Upload date:
  • Size: 15.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for estreamer-0.1.1.tar.gz
Algorithm Hash digest
SHA256 92c57cb3696d9894b5ebc25e84bb92234e0a4015c195791e4bddcc362c1f4812
MD5 6760d8aadd00e6bc765bf73851d67760
BLAKE2b-256 ad73847c72aa0cb3b7e929656ce1486649d7bd59a9b44754bb55ab214367fc05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page