无法从零确定时区 (secs:xxxxxx.xxx, utc~:\""

问题描述 投票:0回答:0

没有 JDBC,所有 ELK 堆栈都可以很好地工作并创建索引。但是当我尝试从 SQL Sevrer 获取数据时它显示错误

无法从零确定时区 (secs:1682572498.097,utc~:"2023-04-27 05:14:58.0969998836517334",ltz~:nil) (etz:nil,tnz:"NPT",tziv:"2.0.6",tzidv:"1.2022.7",rv:"2.6.8",rp:"java",win:true,rorv:nil,astz :无,eov:“1.2.7”,eotnz:“???”,eotnfz:“???”,eotlzn:“???”, debian:无,centos:无,osx:无) 尝试在脚本中设置

ENV['TZ'] = 'Continent/City'
*

我的Logstash配置如下:

input {
jdbc {
jdbc_connection_string =>  "jdbc:sqlserver://localhost:1433;databaseName=TestDB;integratedSecurity=false;"
jdbc_driver_library => ""
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
jdbc_user => "sa"
jdbc_password => "password"
jdbc_default_timezone => "Asia/Kathmandu"
statement => "SELECT * FROM Branches"
}
}
output {
elasticsearch{
hosts => ["localhost:9200"]
index => "Branches"
user => "elastic"
password => "password"
}
}
sql-server jdbc logstash elastic-stack windows-server
© www.soinside.com 2019 - 2024. All rights reserved.