for lightweight Message Queuing, Kafka uses disk for Message Queuing, so there is no problem with the disk when the message is buffered. It is also recommended to use Kafka for Message Queuing in a production environment. In addition, if the company has Kafka services in operation, Logstash can also be quickly accesse
Windows system:1, installation Logstash1.1 access to the official website Download Zip package[1] https://artifacts.elastic.co/downloads/logstash/logstash-6.3.2.zip 6.3.2 versionif you want to download the latest or other version, you can go to the official website and select the download page[2] https://www.elastic.co/products/logstash
Introduced
Elk is the industry standard log capture, storage index, display analysis System solutionLogstash provides flexible plug-ins to support a variety of input/outputMainstream use of Redis/kafka as a link between log/messageIf you have a Kafka environment, using Kafka is better than using RedisHere is one of th
-flume-1.5.2-bin/tracklog-kafka/checkpointAgent.channels.m1.datadirs=/opt/modules/apache-flume-1.5.2-bin/tracklog-kafka/datadirAgent.channels.m1.transactionCapacity = 1000000agent.channels.m1.capacity=1000000Agent.channels.m1.checkpointInterval = 30000
Second, the data into the KafkaThe above collect topic need to be Kafka in advance, the other steps into
Using spring to consolidate Kafka only supports kafka-2.1.0_0.9.0.0 and above versions
Kafka Configuration
View Topicbin/kafka-topics.sh--list--zookeeper localhost:2181Start a producerbin/kafka-console-producer.sh--broker-list localhost:9092--topic testOpen a consumer (2183)
Data acquisition of Kafka and Logstash
Based on Logstash run-through Kafka still need to pay attention to a lot of things, the most important thing is to understand the principle of Kafka.
Logstash Working principleS
The previous chapter introduced the use of Logstash, this article continued in-depth, introduced the most commonly used input plug-in--file.
This plug-in can be read from the specified directory or file, input to the pipeline processing, is also the core of Logstash plug-in, most of the use of the scene will be use
Tags: eyes NEC Beat statement classified password means weight rom The Logstash is constructed from three components, namely input, filter, and output. We can do it, Logstash. The workflow of three components is understood as: input collects data, filter processes the data, and outputs output data. The question of how
Tags: technical input different password installation detailed HTML LED STDThe advent of elasticsearch makes our storage, retrieval data faster and more convenient. But in many cases, our demand is: the current data stored in MySQL, Oracle and other relational traditional database, how to try not to change the original database table structure, the insert,update,delete operation results of these data in real-time synchronization to Elasticsearch ( Abb
Tags: Logstash elk elasticsearchUse Logstash to fetch a datetime type number from MySQL. In stdout view the data JSON format takes a field value similar to2018-03-23T04:18:33.000Z, because you want to use this field as a @timestamp, use the date of Logstash to match. date { match => ["start_time","ISO8601"] }But the actual discovery of each document wi
Here I am demonstrating the operation under WindowsFirst download logstash-5.6.1, directly to the official website to download1. You need to create the following jdbc.conf and myes.sql two filesinput {stdin {} jdbc {jdbc_driver_library="D:\jdbcconfig\sqljdbc4-4.0.jar"Jdbc_driver_class="Com.microsoft.sqlserver.jdbc.SQLServerDriver"jdbc_connection_string="jdbc:sqlserver://127.0.0.1:1433;databasename=abtest"Jdbc_user="SA"Jdbc_password="123456"# Schedule=
1. UTF-8 code, no BOM format, otherwise easily garbled2. Compressed json--single-line file3. Event with line terminators--otherwise will cause logstash not to startBy configuring output to:Output { stdout { = = JSON}Output:{"Name": "lll", "Sex": "xxx", "Age": 123, "@version": "1", "@timestamp": "2016-03-07t15:51:04.211z", "path": "/home/data/ Test.json "," host ":" Virtual-machine "}It can be found that the output content also satisfies t
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.