当前位置:网站首页>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
边栏推荐
- Liuleifeng, a "good man in Guangzhou" in the first quarter of 2022, has a strong sense of integrity and food safety
- Avoid using 100vh[easy to understand] at mobile terminal
- Usage of vivado vio IP
- 消除el-image图片周围间隙
- [electron] 基础学习
- pytorch基础(1)
- First principles (optimal solution theory)
- Follow the archiving tutorial to learn rnaseq analysis (IV): QC method for de analysis using deseq2
- Azure Kinect DK realizes 3D reconstruction (Jetson real-time version)
- vivado 如何添加时序约束
猜你喜欢
![[sword finger offer] 47 Maximum value of gifts](/img/bc/1aff1223b1672c4089151dc56c4d4e.png)
[sword finger offer] 47 Maximum value of gifts

Spatial relation query and graph based query in secondary development of ArcGIS Engine

Death of 5 yuan youkuang in Yuanqi forest

云辅助隐私集合求交(Server-Aided PSI)协议介绍:学习

Swing UI——容器(一)

"Top stream Aidou manufacturing machine" cooperates with four industrial capitals to become LP

【微服务|Sentinel】sentinel数据持久化

2022年PMP项目管理考试敏捷知识点(3)

捷码赋能案例:湖南天辰产研实力迅速提升!实战玩转智慧楼宇/工地等项目

Introduction to quantitative trading
随机推荐
Discuz淘宝客网站模板/迪恩淘宝客购物风格商业版模板
golang - new和make的区别
"Top stream Aidou manufacturing machine" cooperates with four industrial capitals to become LP
The file or assembly 'cefsharp.core.runtime.dll' or one of its dependencies could not be loaded. Is not a valid Win32 Application. (exception from hresult:0x800700c1)
Livox lidar+ Haikang camera generates color point cloud in real time
webserver流程图——搞懂webserver各模块间调用关系
Avoid using 100vh[easy to understand] at mobile terminal
C# Winform 读取Resources图片
vivado 如何添加时序约束
华为伙伴暨开发者大会2022 | 麒麟软件携手华为共建计算产业,共创数智未来
【经典干货书】数据科学中的信息理论方法,561页pdf
企业架构师面试的100个问题
Using xgboost with tidymodels
Golang - the difference between new and make
ABAP essay - material master data interface enhancement - tab enhancement
电子科大(申恒涛团队)&京东AI(梅涛团队)提出用于视频问答的结构化双流注意网络,性能SOTA!优于基于双视频表示的方法!
Fsnotify interface of go language to monitor file modification
Web worker introduction and use cases
如何设置企业微信群机器人定时发消息?
ICML 2022: UFRGS |作为最优策略转移基础的乐观线性支持和后继特征
