当前位置:网站首页>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
边栏推荐
- [electron] 基础学习
- Follow the archiving tutorial to learn rnaseq analysis (IV): QC method for de analysis using deseq2
- C WinForm reads the resources picture
- 最新云开发微信余额充电器特效小程序源码
- How to start ID from 1 after MySQL deletes a table
- go日志包 log的使用
- Applet referer
- 在线JSON转PlainText工具
- [js]var, let, const
- Avoid using 100vh[easy to understand] at mobile terminal
猜你喜欢

使用SQL进行数据去重的N种方法

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

未能加载文件或程序集“CefSharp.Core.Runtime.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)

Summary of solutions to cross system data consistency problems

MSP430F5529 单片机 读取 GY-906 红外温度传感器

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

Windows环境下的ELK——Logstash+Mysql(4)

Discuz taobaoke website template / Dean taobaoke shopping style commercial version template

Spug - 轻量级自动化运维平台

Vivado FFT IP的使用说明
随机推荐
在线JSON转PlainText工具
【Try to Hack】veil-evasion免杀
Small chip chiplet Technology
【经典干货书】数据科学中的信息理论方法,561页pdf
Spark BUG實踐(包含的BUG:ClassCastException;ConnectException;NoClassDefFoundError;RuntimeExceptio等。。。。)
Realization of kaggle cat dog recognition by pytorch
ABAP essay - material master data interface enhancement - tab enhancement
【蓝桥杯集训100题】scratch数字计算 蓝桥杯scratch比赛专项预测编程题 集训模拟练习题第16题
未能加载文件或程序集“CefSharp.Core.Runtime.dll”或它的某一个依赖项。 不是有效的 Win32 应用程序。 (异常来自 HRESULT:0x800700C1)
Practice torch FX: pytorch based model optimization quantization artifact
因美纳陷数据泄露“丑闻”:我国基因数据安全能交给美企吗?
Azure Kinect DK realizes 3D reconstruction (PC non real time version)
Senior headhunting team manager: interviewed 3000 consultants, summarized and organized 8 commonalities (Mao Sheng)
本机部署一个MongoDB单节点服务器,并启用auth验证、开启oplog
How to start ID from 1 after MySQL deletes a table
小程序referer
The choice and trade-off between vector recall and literal recall
Discuz淘宝客网站模板/迪恩淘宝客购物风格商业版模板
【数字IC/FPGA】检测最后一个匹配序列的位置
跨系统数据一致性问题解决方案汇总