Hi,
I am facing some issue in importing a data through Logstash
input
{
file
{
path =>"C:\Users\328347935\Downloads\EKL\logstash-6.2.2\mocklog.log"
start_position => "beginning"
codec => "plain"
}
}
filter
{
grok
{
match =>{"message" => "%{NUMBER:field_number:int}\s+(?<first_name>\S+)\s+(?<last_name>\S+)\s(?<email_address>\S+)\s(?\S+)\s(?\S+)"}
}
}
output
{
elasticsearch
{
hosts => "http://localhost:9200"
index =>"test"
}
stdout{}
}
And I am getting an error like:
[2018-02-27T11:14:33,253][INFO ][logstash.outputs.elasticsearch] Elasticsearch pool URLs updated {:changes=>{:removed=>[
], :added=>[http://localhost:9200/]}}
[2018-02-27T11:14:33,263][INFO ][logstash.outputs.elasticsearch] Running health check to see if an Elasticsearch connect
ion is working {:healthcheck_url=>http://localhost:9200/, :path=>"/"}
[2018-02-27T11:14:33,439][WARN ][logstash.outputs.elasticsearch] Restored connection to ES instance {:url=>"http://local
host:9200/"}
[2018-02-27T11:14:33,487][INFO ][logstash.outputs.elasticsearch] ES Output version determined {:es_version=>nil}
[2018-02-27T11:14:33,494][WARN ][logstash.outputs.elasticsearch] Detected a 6.x and above cluster: the type
event fiel
d won't be used to determine the document _type {:es_version=>6}
[2018-02-27T11:14:33,513][INFO ][logstash.outputs.elasticsearch] Using mapping template from {:path=>nil}
[2018-02-27T11:14:33,538][INFO ][logstash.outputs.elasticsearch] Attempting to install template {:manage_template=>{"tem
plate"=>"logstash-", "version"=>60001, "settings"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"default"=>{"dynami
c_templates"=>[{"message_field"=>{"path_match"=>"message", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "
norms"=>false}}}, {"string_fields"=>{"match"=>"", "match_mapping_type"=>"string", "mapping"=>{"type"=>"text", "norms"=>
false, "fields"=>{"keyword"=>{"type"=>"keyword", "ignore_above"=>256}}}}}], "properties"=>{"@timestamp"=>{"type"=>"date"
}, "@version"=>{"type"=>"keyword"}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=
"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}}
[2018-02-27T11:14:33,587][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::E
lasticSearch", :hosts=>["http://localhost:9200"]}
[2018-02-27T11:14:34,475][INFO ][logstash.pipeline ] Pipeline started succesfully {:pipeline_id=>"main", :thread=
"#<Thread:0x573dfd46 run>"}
[2018-02-27T11:14:34,637][INFO ][logstash.agent ] Pipelines running {:count=>1, :pipelines=>["main"]}