Skip to content
This repository was archived by the owner on Aug 20, 2025. It is now read-only.

Conversation

@nickwallen
Copy link
Contributor

@nickwallen nickwallen commented Sep 19, 2018

While trying to test #1201 , I fixed some issues with the Ansible install of the components required for testing packet capture. I added instructions for how to do this in the README.

Testing

  1. Spin-up the development environment and validate that alerts are visible in the Alerts UI and run the Metron Service Check in Ambari.

  2. Follow the instruction in the README, to install and start all of the components for capturing packets. Ensure that you can search and find these packets using the Alerts UI > PCAP tab.

Pull Request Checklist

  • Is there a JIRA ticket associated with this PR? If not one needs to be created at Metron Jira.
  • Does your PR title start with METRON-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
  • Has your PR been rebased against the latest commit within the target branch (typically master)?
  • Have you included steps to reproduce the behavior or problem that is being changed or addressed?
  • Have you included steps or a guide to how the change may be verified and tested manually?
  • Have you ensured that the full suite of tests and checks have been executed in the root metron folder via:
  • Have you written or updated unit tests and or integration tests to verify your changes?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • Have you verified the basic functionality of the build by building and running locally with Vagrant full-dev environment or the equivalent?

Copy link
Contributor Author

@nickwallen nickwallen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments to help reviewers.

- { role: pcap_replay }
- { role: pycapa }
tags:
- pcap
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allows us to deploy all of the components required for testing packet capture using the tag 'pcap'.

librdkafka_version: 0.9.4
librdkafka_url: https://github.com/edenhill/librdkafka/archive/v0.9.4.tar.gz
librdkafka_version: 0.11.5
librdkafka_url: https://github.com/edenhill/librdkafka/archive/v0.11.5.tar.gz
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pycapa only works with 0.11.5 now. This was tested and validated in a previous PR #1136.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we update the bro package as well? I would need to double check but I think it uses the version of librdkafka installed here in full-dev, but the package docs say "This plugin has been tested against the latest release of librdkafka, which at the time of this writing is v0.9.4."


### Deploy Packet Capture

If you want to deploy the components required to generate and capture network packets.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specific instructions for deploying the components required to test packet capture in the development environment.

@nickwallen
Copy link
Contributor Author

Travis CI goofed

@nickwallen nickwallen closed this Sep 19, 2018
@nickwallen nickwallen reopened this Sep 19, 2018
@MohanDV
Copy link
Contributor

MohanDV commented Oct 1, 2018

Deployed a full dev , I executed set of instructions as in Docs

vagrant up vagrant --ansible-tags="pcap" provision

#Stopped the Parser, Enrichment, Indexing, and Profiler topologies to free-up resources.

vagrant ssh sudo su - source /etc/default/metron yum -y install wireshark

I see that the pcap-replay and pycapa services not deployed ..

[root@node1 ~]# service pcap-replay start

pcap-replay: unrecognized service

[root@node1 ~]# service pycapa start

pycapa: unrecognized service

@nickwallen
Copy link
Contributor Author

Yes, you are right @MohanDV. Somehow the default tags are interacting badly with the tags that are passed in. I'll try to figure out what's going on.

@nickwallen nickwallen closed this Mar 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants