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

时间:2018-05-28 09:47:38

标签: 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/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]" GET   /configs/config/thecelloserenades@gmail.com HTTP / 1.1" 200 1135   "本地主机/ octoviz-AUTH /公共/ octoviz /管理/ admin.html&#34 ;; " Mozilla的/ 5.0   (X11; Ubuntu; Linux x86_64; rv:39.0)Gecko / 20100101 Firefox / 39.0"

0 个答案:

没有答案