当前位置:网站首页>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
边栏推荐
- 打造南沙“强芯”,南沙首届IC Nansha大会召开
- 【Vim】使用教程,常用命令,高效使用Vim编辑器
- What problems should be paid attention to in the serpentine wiring of PCB?
- [essay]me53n add button to call URL
- mongodb基础操作之聚合操作、索引优化
- 【经典干货书】数据科学中的信息理论方法,561页pdf
- PE buys a underwear company
- Ice cream or snow "high"?
- Swing UI container (I)
- 如何设置企业微信群机器人定时发消息?
猜你喜欢

居家办公竟比去公司上班还累?

通过 MQTT 检测对象和传输图像

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

Design of STM32 and rc522 simple bus card system

小芯片chiplet技术杂谈

实践torch.fx:基于Pytorch的模型优化量化神器

【经典干货书】数据科学中的信息理论方法,561页pdf

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

C# Winform 读取Resources图片

The most illusory richest man in China is even more illusory
随机推荐
vmware虚拟机桥接连通
Download versions such as typora 1.2.5
Discuz small fish game wind shadow legend business gbk+utf8 version template /dz game website template
MySQL十八:写语句的执行过程
webserver流程图——搞懂webserver各模块间调用关系
Web worker introduction and use cases
Discuz淘宝客网站模板/迪恩淘宝客购物风格商业版模板
Discuz taobaoke website template / Dean taobaoke shopping style commercial version template
Zabbix6.0 upgrade Guide - how to synchronize database upgrades?
如何找到外文文献对应的中文文献?
pytorch基础(1)
Azure Kinect DK realizes 3D reconstruction (PC non real time version)
Technical implementation process of easycvr platform routing log function [code attached]
Applet referer
Discuz小鱼游戏风影传说商业GBK+UTF8版模板/DZ游戏网站模板
Classification of cifar-10 dataset with pytorch
Realization of kaggle cat dog recognition by pytorch
webService
2022年PMP项目管理考试敏捷知识点(3)
跨系统数据一致性问题解决方案汇总
