【发布时间】:2013-11-08 22:36:21
【问题描述】:
我很难让 Logstash、Elasticsearch 和 Kibana 的组合在我的 Windows 7 环境中工作。
我已经设置了所有 3 个,它们似乎都运行良好,Logstash 和 Elasticsearch 作为 Windows 服务运行,Kibana 作为 IIS 中的网站运行。
Logstash 从 http://localhost:9200 运行
我有一个 Web 应用程序以 .txt 格式创建日志文件,格式为:
日期时间=[日期时间],值=[xxx]
在此目录中创建日志文件:
D:\wwwroot\Logs\Errors\
我的 logstash.conf 文件如下所示:
input {
file {
format => ["plain"]
path => ["D:\wwwroot\Logs\Errors\*.txt"]
type => "testlog"
}
}
output {
elasticsearch {
embedded => true
}
}
我的 Kibana config.js 文件如下所示:
define(['settings'],
function (Settings) {
return new Settings({
elasticsearch: "http://localhost:9200",
kibana_index: "kibana-int",
panel_names: [
'histogram',
'map',
'pie',
'table',
'filtering',
'timepicker',
'text',
'fields',
'hits',
'dashcontrol',
'column',
'derivequeries',
'trends',
'bettermap',
'query',
'terms'
]
});
});
当我查看 Kibana 时,我看到了错误:
在
http://localhost:9200/_all/_mapping找不到索引。请至少创建一个索引。如果您使用的是代理,请确保其配置正确。
我不知道如何创建索引,所以如果有人能阐明我做错了什么,那就太好了。
【问题讨论】:
-
elasticsearch 中好像没有数据?你开始用logstash索引东西了吗?日志文件 logstash 中的内容是否指向?
-
您是在 Windows 中将 logstash 运行到集中式版本还是独立版本中?因为我试图找到一种在 Windows 中使用集中式选项的方法,但我做不到。如果你做到了,任何帮助对我来说都是非常宝贵的。 stackoverflow.com/questions/23907747/…
标签: windows iis elasticsearch logstash kibana