Giter VIP home page Giter VIP logo

flewton's Introduction

Flewton

Flewton is an extensible Netflow collector.

Building / Installing

Building Flewton requires that you have Maven installed. To build a self-contained executable jar file run:


mvn clean compile assembly:single

Configuration

Refer to the comments in the sample configuration shipped with Flewton.

Running

In a nutshell:


java [options] -jar flewton.jar

By default, Flewton will search for its configuration file as /etc/flewton/flewton.cfg, /etc/flewton.cfg, and ./flewton.cfg, using the first one found. You can specify a path to your configuration using the flewton.config system property, for example:


java -Dflewton.config=/usr/local/etc/flewton.cfg -jar flewton.jar

Flewton uses log4j for logging. By default, the log level is INFO and output is sent to stdout. To customize logging, create your own log4j.properties and set the log4j.configuration system property:


java -Dlog4j.configuration=file:///path/to/log4.props -jar flewton.jar

Implementing backends in other languages

Backends can be implemented in several languages. We currently support:

  • Python
  • Javascript

There are three ways you can tell Flewton about your external backends:
1. Place them in /etc/flewton.
2. Run flewton with -Dflewton.backend_path, placing your external backends in that directory.
3. Include your backends in the classpath so they can be loaded as resources by the classloader.

Identify your external backends in flewton.cfg by using their entire names, e.g.: js/my/AwesomeBackend.js or py/my/CoolerBackend.py. The default cfg that ships with flewton contains a few commented out examples, the source for which can also be found in the Flewton source code.

Python

  • Your class should extend AbstractBackend.
  • Your class should have an __init__ method that accepts an instance of HierarchicalConfiguration.
  • Module names must begin with โ€˜py/โ€™ to be properly identified as python. E.g.: py/my/module/path/Foo.py

Javascript

  • Your javascript should export two methods: init(config) and write(record). The class types for config and record are the same as they would be in Java.

Known Issues

  • Currently only Netflow v5 is supported, but additional Netflow formats are possible by implementing decoder classes as com.rackspace.flewton.RecordvN (where N is the version). See com.rackspace.flewton.Recordv5 for an example. Patches welcome.

About

Flewton was developed by Gary Dusbabek and Eric Evans and made open-source by Rackspace.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.