Please correct my logstash.conf as i am getting below error message and in kibana i can see my data in dev tool (GET /_search) but not able to view data in discover tab
Q1.I need to add any index in logstash.conf?
Q2.i need to add any filter
ERROR StatusLogger No log4j2 configuration file found. Using default configurati
on: logging only errors to the console.
Sending Logstash's logs to C:/logstash-5.5.2/logs which is now configured via lo
g4j2.properties
[2017-08-29T19:40:56,025][INFO ][logstash.pipeline ] Starting pipeline {"
id"=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.
delay"=>5, "pipeline.max_inflight"=>500}
[2017-08-29T19:40:56,649][INFO ][logstash.pipeline ] Pipeline main starte
d
[2017-08-29T19:40:56,821][INFO ][logstash.agent ] Successfully started
Logstash API endpoint {:port=>9600}
For all general issues, please provide the following details for fast resolution:
as suggested i modified logstash.conf asbelow but In Kibana i not able to see any data:
input {
file{
path=> "/logstash-5.5.2/bin/test1.log"
start_position=>"beginning"
sincedb_path=>"nul"
}
}
output { stdout {}
elasticsearch { hosts => ["localhost:9200"] }
}
Logstash cmd:
C:\logstash-5.5.2\bin>logstash -f logstash.conf
ERROR StatusLogger No log4j2 configuration file found. Using default configurati
on: logging only errors to the console.
Sending Logstash's logs to C:/logstash-5.5.2/logs which is now configured via lo
g4j2.properties
[2017-08-31T12:35:21,325][INFO ][logstash.outputs.elasticsearch] Elasticsearch p
ool URLs updated {:changes=>{:removed=>[], :added=>[http://localhost:9200/]}}
[2017-08-31T12:35:21,466][INFO ][logstash.outputs.elasticsearch] Running health
check to see if an Elasticsearch connection is working {:healthcheck_url=>http:/
/localhost:9200/, :path=>"/"}
[2017-08-31T12:35:21,700][WARN ][logstash.outputs.elasticsearch] Restored connec
tion to ES instance {:url=>"http://localhost:9200/"}
[2017-08-31T12:35:21,700][INFO ][logstash.outputs.elasticsearch] Using mapping t
emplate from {:path=>nil}
[2017-08-31T12:35:21,903][INFO ][logstash.outputs.elasticsearch] Attempting to i
nstall template {:manage_template=>{"template"=>"logstash-", "version"=>50001,
"settings"=>{"index.refresh_interval"=>"5s"}, "mappings"=>{"default"=>{"_all"=>{"enabled"=>true, "norms"=>false}, "dynamic_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", "include_in_all"=>false}, "@version"=>{"type"=>"keyword", "include_in_all"=>false}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}}
[2017-08-31T12:35:21,934][INFO ][logstash.outputs.elasticsearch] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//localhost:9200"]}
[2017-08-31T12:35:21,949][INFO ][logstash.pipeline ] Starting pipeline {"
id"=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.
delay"=>5, "pipeline.max_inflight"=>500}
[2017-08-31T12:35:23,185][INFO ][logstash.pipeline ] Pipeline main started
[2017-08-31T12:35:23,473][INFO ][logstash.agent ] Successfully started
Logstash API endpoint {:port=>9600}
i changed conf file as below ,now i am not able to read file from my local path as no output in stdout.i didnt find any reference and vedios for logstash to start dev.i had to test and everything good then my company going to use this in production.
input {
file{
path=> "C:/logstash-5.5.2/bin/test1.log"
start_position=>"beginning"
sincedb_path=>"/dev/null"
}
}
output {
stdout {}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.