github.com/Psiphon-Labs/goarista@v0.0.0-20160825065156-d002785f4c67/cmd/ockafka/README.md (about) 1 # ockafka 2 3 Client for the gRPC OpenConfig service for subscribing to the configuration and 4 state of a network device and feeding the stream to Kafka. 5 6 ## Sample usage 7 8 Subscribe to all updates on the Arista device at `10.0.1.2` and stream to a local 9 Kafka instance: 10 11 ``` 12 ockafka -addrs 10.0.1.2 13 ``` 14 15 Subscribe to temperature sensors from 2 switches and stream to a remote Kafka instance: 16 17 ``` 18 ockafka -addrs 10.0.1.2,10.0.1.3 -kafkaaddrs kafka:9092 -subscribe /Sysdb/environment/temperature/status/tempSensor 19 ``` 20 21 Start in a container: 22 ``` 23 docker run aristanetworks/ockafka -addrs 10.0.1.1 -kafkaaddrs kafka:9092 24 ``` 25 26 ## Kafka/ELK integration demo 27 The following video demoes integration with Kafka and ELK using [this](https://github.com/aristanetworks/docker-logstash) Logstash instance: 28 29 [![video preview](http://img.youtube.com/vi/WsyFmxMwXYQ/0.jpg)](https://youtu.be/WsyFmxMwXYQ)