elasticsearch 无法从logfstast获取到弹性搜索的输出,elasticsearch,search,logstash,elasticsearch,Search,Logstash" /> elasticsearch 无法从logfstast获取到弹性搜索的输出,elasticsearch,search,logstash,elasticsearch,Search,Logstash" />

elasticsearch 无法从logfstast获取到弹性搜索的输出

elasticsearch 无法从logfstast获取到弹性搜索的输出,elasticsearch,search,logstash,elasticsearch,Search,Logstash,在localhost:9200上运行时,我无法从Logstash获取到Elasticsearch的输出。将日志保存在本地路径中&创建索引&在名为test.conf的文件中执行 input { file { path => "C:/logs/nginxAccess.log" start_position => "beginning" } } filter { date { match => [ "timestamp" , "dd/MMM

在localhost:9200上运行时,我无法从Logstash获取到Elasticsearch的输出。将日志保存在本地路径中&创建索引&在名为test.conf的文件中执行

input { 
  file { 
    path => "C:/logs/nginxAccess.log" 
    start_position => "beginning" } 
} 
filter { 
  date { 
   match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ] 
  } 
} 
output { 
  file { 
   path => "C:/output.log" 
  } 
  stdout { 
   codec => rubydebug 
  } 
} 

“122.164.121.231——[23/Nov/2015:07:19:54-0500]“获得 /配置/配置/thecelloserenades@gmail.comHTTP/1.1“200 1135 “localhost/octoviz auth/public/octoviz/admin/admin.html”;“Mozilla/5.0 (X11;Ubuntu;Linux x86_64;rv:39.0)Gecko/20100101 Firefox/39.0“


我不确定你要的是什么。你想在控制台中显示Logstash输出吗?我需要Logstash输出文件(如c:\temp\output.log或索引中的弹性搜索--)我有test.conf文件我将运行Logstash-f test.conf也有ig log input文件你能发布配置文件开始吗?input{file{path=>“C:/logs/nginxAccess.log”start_position=>“beging”}filter{date{match=>[“timestamp”,“dd/MMM/yyyyy:HH:mm:ss Z”]}output{file{path=>“C:/output.log}stdout{codec=>rubydebug}”122.164.121.231--[23/11/2015:07:19-0500]“获取/configs/config/thecelloserenades@gmail.comHTTP/1.1“200 1135”“Mozilla/5.0(X11;Ubuntu;Linux x86_64;rv:39.0)Gecko/20100101 Firefox/39.0”