我将syslog数据发送到logstash,后者应用一些过滤并将数据发送到elasticsearch。即使我可以在elasticsearch中看到数据,它在kibana中也没有显示。
创建索引时,如果我设置了Time Filter (@timestamp),则数据不可见。当不使用Time Filter时,数据可以完美地显示。索引的映射如下所示:
{
"mapping": {
"doc": {
"properties": {
"@timestamp": {
"type": "date"
},
"facility": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"facility_full": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"facility_mnemonic": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"host": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"log_date": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"log_sequence": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"message": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"severity_level": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"tags": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
}
}所以@timestamp的类型是date -和我的所有其他索引一样。我做错了什么?
Elasticstack v6.4.0
发布于 2018-09-10 02:53:35
我不能发表评论,所以在这里写这篇文章作为回答。
请与时间过滤器检查更大的时间范围在您的kibana(如今天或本月)。
我发现timestamp字段的时区有问题(我在映射中看不到它)。另外,kibana默认在UTC时区工作。因此,它将根据UTC (在您的时间戳域中)显示数据。
有关更多帮助,请查看this链接。
发布于 2018-09-11 22:19:24
您是否在Kibana中设置了将此字段定义为日期戳的索引模式?如果没有索引模式,仪表板上的时间选择器将不会执行任何操作。请参阅https://www.elastic.co/guide/en/kibana/current/tutorial-define-index.html
https://stackoverflow.com/questions/52216905
复制相似问题