Hi Guys,
I am trying to read sample EDI log from the below path using logstash .conf file
C:\Users\skkoganti\Documents\log\EDI Log-2019-05-27.txt
this is my sample input file format
input
{
file
{
path => ["C:/Users/skkoganti/Documents/log/EDI Log-2019-05-27"]
start_position => "beginning"
sincedb_path => "NULL"
}
}
output
{
stdout {codec => rubydebug}
elasticsearch
{
index=> "edi_logs"
hosts => ["localhost:9200"]
}
}
but i don't see any index created on my kibana. Can anyone please suggest me on this.
logstash output after i ran
C:\Users\skkoganti\Documents\Elastic\elastic_download\logstash-7.9.1\logstash-7.9.1\config>logstash -f iphone.conf
Sending Logstash logs to C:/ELK/logstash-7.9.1/logstash-7.9.1/logs which is now configured via log4j2.properties
[2020-10-05T19:38:20,405][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.9.1", "jruby.version"=>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc Java HotSpot(TM) 64-Bit Server VM 25.261-b12 on 1.8.0_261-b12 +indy +jit [mswin32-x86_64]"}
[2020-10-05T19:38:20,690][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2020-10-05T19:38:22,842][INFO ][org.reflections.Reflections] Reflections took 50 ms to scan 1 urls, producing 22 keys and 45 values
[2020-10-05T19:38:25,792][INFO ][logstash.outputs.elasticsearch][main] Elasticsearch pool URLs updated {:changes=>{:removed=>, :added=>[http://localhost:9200/]}}
[2020-10-05T19:38:26,024][WARN ][logstash.outputs.elasticsearch][main] Restored connection to ES instance {:url=>"http://localhost:9200/"}
[2020-10-05T19:38:26,096][INFO ][logstash.outputs.elasticsearch][main] ES Output version determined {:es_version=>7}
[2020-10-05T19:38:26,103][WARN ][logstash.outputs.elasticsearch][main] Detected a 6.x and above cluster: the type
event field won't be used to determine the document _type {:es_version=>7}
[2020-10-05T19:38:26,184][INFO ][logstash.outputs.elasticsearch][main] New Elasticsearch output {:class=>"LogStash::Outputs::ElasticSearch", :hosts=>["//localhost:9200"]}
[2020-10-05T19:38:26,293][INFO ][logstash.outputs.elasticsearch][main] Using a default mapping template {:es_version=>7, :ecs_compatibility=>:disabled}
[2020-10-05T19:38:26,352][INFO ][logstash.javapipeline ][main] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>8, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>1000, "pipeline.sources"=>["C:/Users/skkoganti/Documents/Elastic/elastic_download/logstash-7.9.1/logstash-7.9.1/config/iphone.conf"], :thread=>"#<Thread:0x483fc6a run>"}
[2020-10-05T19:38:26,384][INFO ][logstash.outputs.elasticsearch][main] Attempting to install template {:manage_template=>{"index_patterns"=>"logstash-", "version"=>60001, "settings"=>{"index.refresh_interval"=>"5s", "number_of_shards"=>1}, "mappings"=>{"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"}, "@version"=>{"type"=>"keyword"}, "geoip"=>{"dynamic"=>true, "properties"=>{"ip"=>{"type"=>"ip"}, "location"=>{"type"=>"geo_point"}, "latitude"=>{"type"=>"half_float"}, "longitude"=>{"type"=>"half_float"}}}}}}}
[2020-10-05T19:38:27,279][INFO ][logstash.javapipeline ][main] Pipeline Java execution initialization time {"seconds"=>0.92}
[2020-10-05T19:38:27,870][INFO ][logstash.javapipeline ][main] Pipeline started {"pipeline.id"=>"main"}
[2020-10-05T19:38:27,946][INFO ][filewatch.observingtail ][main][5d1e9063f71372cd43b3d1a5773212aeb482e63ccd792a234be6d0096907cf78] START, creating Discoverer, Watch with file and sincedb collections
[2020-10-05T19:38:27,952][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>}
[2020-10-05T19:38:28,321][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}