当前位置:网站首页>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
边栏推荐
- 企业架构师面试的100个问题
- Personal tree ALV template - accelerate your development
- pytorch实现kaggle猫狗识别
- seata
- Technical implementation process of easycvr platform routing log function [code attached]
- Senior headhunting team manager: interviewed 3000 consultants, summarized and organized 8 commonalities (Mao Sheng)
- 第一性原理(最优解理论)
- 支持删除,更新任意结点的优先级队列
- 6G显卡显存不足出现CUDA Error:out of memory解决办法
- First principles (optimal solution theory)
猜你喜欢

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

Excel print settings public header

This kind of people began to be robbed by VC with a monthly salary of 80000 yuan

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

C WinForm reads the resources picture

Golang - the difference between new and make

vmware虚拟机桥接连通

webserver流程图——搞懂webserver各模块间调用关系

Practice torch FX: pytorch based model optimization quantization artifact

Spug - 轻量级自动化运维平台
随机推荐
Liuleifeng, a "good man in Guangzhou" in the first quarter of 2022, has a strong sense of integrity and food safety
撰写外文时怎样引用中文文献?
第一性原理(最优解理论)
用pytorch进行CIFAR-10数据集分类
发射,接收天线方向图
良/恶性乳腺肿瘤预测(逻辑回归分类器)
如何找到外文文献对应的中文文献?
Design of STM32 and rc522 simple bus card system
华为伙伴暨开发者大会2022 | 麒麟软件携手华为共建计算产业,共创数智未来
Spug - 轻量级自动化运维平台
[js]var, let,const 的区别
vivado VIO IP的用法
Livox lidar+ Haikang camera generates color point cloud in real time
小芯片chiplet技术杂谈
c语言字符指针、字符串初始化问题
Discuz small fish game wind shadow legend business gbk+utf8 version template /dz game website template
Applet referer
【Try to Hack】veil-evasion免杀
Livox lidar+apx15 real-time high-precision radar map reproduction and sorting
[sword finger offer] 48 Longest substring without duplicate characters
