Skip to content

Instantly share code, notes, and snippets.

I think we can all agree that the addition of Stellar has given us significant capabilities in Metron that we would not otherwise have. The ability to program in real-time on security telemetry is very powerful.

There are some ways that we can improve it though. Primarily, the way that a user programs with Stellar in Metron has some friction points.

  • It is difficult to understand, especially for beginners.
    • Which JSON element do I need to add this Stellar snippet to?
    • Do I need to escape this quote?
    • Why do I need to fit all of my logic on this single, long line?
kafka-console-consumer.sh  --zookeeper y113:2181 --topic bro --security-protocol SASL_PLAINTEXT

Change configuration for a specific topic.

[root@y136 ~]# kafka-configs.sh \
  --zookeeper $ZOOKEEPER \

Create the topic.

TOPIC=pcap256-1hour
kafka-topics.sh --create --topic $TOPIC --partitions 256 --replication-factor 1 --zookeeper $ZOOKEEPER

Grant access.

kafka-acls.sh \
```
Actual: 769479068 packets (501187700553 bytes) sent in 3645.00 seconds.
Rated: 137499900.0 Bps, 1099.99 Mbps, 211105.28 pps
^C User interrupt...
sendpacket_abort
Actual: 772211468 packets (502967509292 bytes) sent in 3657.09 seconds.
Rated: 137499900.0 Bps, 1099.99 Mbps, 211105.23 pps
Flows: 68 flows, 0.01 fps, 772211813 flow packets, 0 non-flow
Statistics for network device: enp129s0f1

Create a topic with 48 partitions

[root@y136 ~]# kafka-topics.sh --create --topic pcap48-1hour --partitions 48 --replication-factor 1 --zookeeper y113:2181
Created topic "pcap48-1hour".

Grant access

Test1

Create a new Topic

[root@y136 ~]# kafka-topics.sh --create --topic pcap-nick-v2 --partitions 12 --replication-factor 1 --zookeeper y113:2181
Created topic "pcap-nick-v2".


[root@y136 ~]# kafka-topics.sh --create --topic pcap-fastcapa-example-native --partitions 12 --replication-factor 1 --zookeeper y113:2181
Created topic "pcap-fastcapa-example-native".



[root@y136 ~]# kafka-acls.sh --authorizer kafka.security.auth.SimpleAclAuthorizer \
>     -authorizer-properties zookeeper.connect=y113:2181 \

INTEL X520-DA2 10GBE SVR 2PT SFP+

insmod /usr/local/dpdk/lib/modules/3.10.0-514.10.2.el7.x86_64/extra/dpdk/igb_uio.ko
dpdk-devbind --bind=igb_uio "81:00.1"

Install

yum install dkms
wget http://packages.ntop.org/rpm7/x64/PF_RING/pfring-6.7.0-1207.x86_64.rpm
wget http://packages.ntop.org/rpm7/noarch/PF_RING-dkms/pfring-dkms-6.7.0-1207.noarch.rpm
rpm -ivh pfring-*rpm
systemctl start pf_ring
  1. Deploy Full Dev.

  2. Turn off Monit.

    service monit stop
    chkconfig monit off
    service sensor-stubs stop