GitHub user nickwallen opened a pull request:
https://github.com/apache/incubator-metron/pull/58
METRON-83 Create 'sensor test mode'
The 'sensor test mode' is an Ansible role that configures each of the
sensors to produce the maximum amount of telemetry data. This role is useful
only for testing. It can be useful to support functional, performance, and
load testing of Apache Metron.
The role does the following to maximize the amount of telemetry data
produced by each Metron sensor.
- Plays a packet capture file through a network interface to simulate live
network traffic.
- Configures [YAF](https://tools.netsa.cert.org/yaf/yaf.html) to produce a
flow record for every network packet received.
- Configures [Snort](https://www.snort.org/) to produce an alert for every
network packet received.
To enable 'sensor-test-mode' apply the role to the `sensors` host group in
your Ansible playbook.
```
- hosts: sensors
roles:
- role: sensor-test-mode
```
The role has also been added to the default `metron_install.yml` playbook
so that it can be turned on/off with a property in both the local Virtualbox
and the remote EC2 deployments.
```
sensor_test_mode: True
```
I am envisioning that `deployment/test-roles` will in the future contain
multiple test scenarios that can be dynamically loaded as needed. This will be
useful for demos, manual testing, CI testing, and other automated tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/nickwallen/incubator-metron METRON-83
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-metron/pull/58.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #58
----
commit c0dd7cf6dd638b60b65676173b53e97a9b6bc109
Author: Nick Allen <[email protected]>
Date: 2016-03-22T03:40:53Z
METRON-83 Created 'sensor test mode'
commit 2c341043bc1dd6eb500d12d4273c92c836340513
Author: Nick Allen <[email protected]>
Date: 2016-03-22T15:50:40Z
METRON-83 YAF was not stopping correctly and not receiving all of the
parameters to 'start'
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---