官术网_书友最值得收藏!

Do it yourself

In this section, we will provide the problem for the reader so that they can create their own application after reading the previous content.

Here, we will extend the example given previous regarding the setup and configuration of NiFi. The problem statement is read from a real-time log file and put into Cassandra. The pseudo code is as follows:

  • Tail log file
  • Put events into Kafka topic
  • Read events from Kafka topic
  • Filter events
  • Push event into Cassandra

You have to install Cassandra and configure it so that NiFi will be able to connect it.

Logstash is made to process the logs and throw them to other tools for storage or visualization. The best fit here is Elastic Search, Logstash and Kibana (ELK). As per the scope of this chapter, we will build integration between Elastic Search and Logstash and, in the next chapters, we will integrate Elastic Search with Kibana for complete workflow. So all you need to do to build ELK is:

  • Create a program to read from PubNub for real-time sensor data. The same program will publish events to the Kafka topic
  • Install Elasticsearch on the local machine and start
  • Now, write a Logstash configuration which reads from a Kafka topic, parse and format them and push them into the Elasticsearch engine
主站蜘蛛池模板: 新平| 临安市| 新余市| 翼城县| 开封县| 景德镇市| 高州市| 肇东市| 上高县| 休宁县| 榆树市| 达孜县| 巨野县| 淳安县| 开平市| 石柱| 佳木斯市| 云阳县| 唐河县| 搜索| 平舆县| 玉溪市| 连云港市| 普定县| 锡林郭勒盟| 彰化县| 肇东市| 交口县| 呼伦贝尔市| 白玉县| 类乌齐县| 花莲县| 右玉县| 喀喇沁旗| 德安县| 乌兰浩特市| 克东县| 武乡县| 长宁县| 松滋市| 朔州市|