[英]Date filter in logstash: bad results(shows one day back)
I am loading a CSV file into elastic using logstash 我正在使用logstash将CSV文件加载到Elastic中
This CSV file contains a column 'deadline' which has dates of the format 此CSV文件包含“截止日期”列,其日期格式为
"deadline": "15-06-2014"
I am using the date filter plugin in logstash to get this in date format into elastic 我正在logstash中使用日期过滤器插件将日期格式转换为弹性
date {
match => ["deadline","dd-MM-yyyy"]
target => "deadline_date"
}
But in the output I am receiving the date which has moved one day back 但是在输出中,我收到的日期已经移回了一天
"deadline_date": "2014-06-14T18:30:00.000Z"
I have one more instance with format like this "dd-MM-yyyy HH:mm" 我还有一个实例,其格式为“ dd-MM-yyyy HH:mm”
date {
match => ["launched","dd-MM-yyyy HH:mm"]
target => "launched_date"
}
Gives result with time changed 随时间变化给出结果
"launched": "09-09-2013 18:19"
"launched_date": "2013-09-09T12:49:00.000Z"
Please help me figure out this issue. 请帮助我找出这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.