GitHub user merrimanr opened a pull request: https://github.com/apache/incubator-metron/pull/323
Snort logs are now sent to Kafka via kafka-console-producer This PR attempts to solve the issue of snort data not flowing after an extended amount of time by removing Flume as a dependency and simplifying the process. Flume is replaced by a combination of the "tail" command and kafka-console-producer, making it much easier to troubleshoot. The implementation was inspired by the yaf sensor. The one significant change is in the "metron-deployment/roles/snort/templates/snort-producer" init script. The yaf init script stops the child processes by name with "killall" which doesn't work in this case because "snort-producer" is not in the first "tail" command. Instead the process group id is retrieved in line 64 and passed to the "kill" command in line 67. This has been tested in quick-dev, including managing the sensor through Monit. I searched for other Flume dependencies but could not find any, therefore Flume was removed completely. You can merge this pull request into a Git repository by running: $ git pull https://github.com/merrimanr/incubator-metron METRON-514 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-metron/pull/323.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 #323 ---- commit 5515562f3a8e9e9f292c614c7542acdb91c59e58 Author: rmerriman <rmerri...@hortonworks.com> Date: 2016-10-25T15:41:01Z Snort logs are now sent to Kafka via kafka-console-producer ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---