当前位置:网站首页>Elk in Windows Environment - logstash+mysql (4)
Elk in Windows Environment - logstash+mysql (4)
2022-06-27 23:31:00 【There are poems and distant places】
One 、JDBC
We need to download the corresponding JDBC connector.
decompression , take mysql-connector-java-8.0.18.jar Put it in logstash Of jars Directory
F:\ELK\ELK8.2.3\logstash-8.2.3\logstash-core\lib\jars
Two 、 Prepare the data
3、 ... and 、 To configure conf
stay bin Created in the same level directory mysql.conf
input {
jdbc {
# Link string
jdbc_connection_string => "jdbc:mysql://localhost:3306/elk_01?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai"
# user
jdbc_user => "root"
# password
jdbc_password => "123456"
jdbc_validate_connection => true
jdbc_driver_library => "F:/ELK/ELK8.2.3/logstash-8.2.3/logstash-core/lib/jars/mysql-connector-java-8.0.18.jar"
jdbc_driver_class => "com.mysql.cj.jdbc.Driver"
parameters => {
"Product_id" => "Product1" }
statement => "SELECT * FROM SalesJan2009 WHERE Product = :Product_id"
}
}
filter {
mutate {
rename => {
"longitude" => "[location][lon]"
"latitude" => "[location][lat]"
}
}
}
output {
stdout {
}
elasticsearch {
index => "sales"
hosts => "119.3.20.91:9200"
document_type => "_doc"
}
}
Four 、 function conf
logstash.bat -f mysql.conf
边栏推荐
- MapReduce初级编程实践
- This kind of people began to be robbed by VC with a monthly salary of 80000 yuan
- What if Fiddler fails to listen to the interface
- Usage of vivado vio IP
- c语言字符指针、字符串初始化问题
- [js]var, let,const 的区别
- c语言之字符串数组
- Batch processing - Excel import template 1.1- support multiple sheet pages
- Use of go log package log
- 「R」 Using ggpolar to draw survival association network diagram
猜你喜欢
随机推荐
【IDEA】IDEA 格式化 代码技巧 idea 格式化 会加 <p> 标签
EasyCVR平台路由日志功能的技术实现过程【附代码】
Discuz小鱼游戏风影传说商业GBK+UTF8版模板/DZ游戏网站模板
[network] common request methods
跨系统数据一致性问题解决方案汇总
golang - new和make的区别
Azure Kinect DK realizes 3D reconstruction (Jetson real-time version)
Spug - 轻量级自动化运维平台
撰写外文时怎样引用中文文献?
Summary of solutions to cross system data consistency problems
[can you really use es] Introduction to es Basics (II)
使用SQL进行数据去重的N种方法
文献综述如何挑选文献进行阅读,比如我的检索结果有200多篇根本看不完,如何进行文献挑选呢?...
[learn FPGA programming from scratch -48]: Vision - development and application of intelligent sensors
Started a natural language model bloom
[essay]me53n add button to call URL
The National University of Singapore 𞓜 uses model free reinforcement learning to evaluate the energy efficiency of the energy efficiency data center
Introduction to quantitative trading
Brief introduction to game phone platform
Avoid using 100vh[easy to understand] at mobile terminal


![[sword finger offer] 47 Maximum value of gifts](/img/bc/1aff1223b1672c4089151dc56c4d4e.png)







