Hi,
I am trying to connect to remote host of elastic search using logstash. Taken a sample /var/log/message and given as input file path in my logstash.conf. Here is the conf file which i am using :
input {
file {
path => "/tmp/access_log"
start_position => "beginning"
type => "syslog"
sincedb_path => "nul"
}
}
output {
elasticsearch { hosts => [":9200"]
template_overwrite => "true"
}
}
and my /tmp/access_log contains simple logmessage :
Dec 3 08:45:23 ip- dhclient[1852]: DHCPACK from (xid=0x14eec1ec)
But i am getting a message saying -
:response=>{"index"=>{"index"=>"logstash-2015.12.03", "type"=>"syslog", "id"=>nil, "status"=>400, "error"=>{"type"=>"mapperparsing_exception", "reason"=>"mapping [default]", "caused_by"=>{"type"=>"mapper_parsing_exception", "reason"=>"Mapping definition for [geoip] has unsupported parameters: [path : full]"}}}}, :level=>:warn}
and also please let me know how to create index automatically.. awaiting for your reply. Thanks In advance.