my guess is this is not the first time you try to process that file and since you didn't specify in your input a null parameter for the sincedb_path (sincedb_path => "/dev/null" for linux and sincedb_path => "NUL" for windows if I'm not wrong), Logstash thinks it has already processed that file, that's why you don't see anything.
Try cloning that file, changing its name and changing the filename in the input section of logstash, adding the sincedb_path => "NUL" and see if it works.
infact i deleted the sincedb file , and copied the same log file and named it differently. i went on to even reduce the content of the log file( assuming offset will affect the execution ) .included a "ignore_older=>" 0 but still
C:\busapps\drsb\gbl0\logstash\7.0.0\bin>logstash -f "C:\busapps\drsb\gbl0\logstash\7.0.0\bin\pipelines\logstash.conf"
Sending Logstash logs to C:/busapps/drsb/gbl0/logstash/7.0.0/logs which is now configured via log4j2.properties
[2020-03-14T15:16:36,820][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2020-03-14T15:16:36,836][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"7.0.0"}
[2020-03-14T15:16:43,958][INFO ][logstash.javapipeline ] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>500, :thread=>"#<Thread:0x3f200de7 run>"}
[2020-03-14T15:16:44,618][INFO ][logstash.javapipeline ] Pipeline started {"pipeline.id"=>"main"}
[2020-03-14T15:16:44,713][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>}
[2020-03-14T15:16:44,728][INFO ][filewatch.observingtail ] START, creating Discoverer, Watch with file and sincedb collections
[2020-03-14T15:16:45,185][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
@yaauie any thoughts ? i am tagging you as i found your reply on a similar issue (in git gub) i hope u dont mind.
my wonder is , in the output section there is no reference of the input file or its path etc., is it first of all processing or not ? infact when i gave "//" it threw some error
File paths must be absolute, relative path specified: C:\Users\G703065T1\Desktop\log.txt>, :backtrace=>["C:/busapps/drsb/gbl0/logstash/7.0.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.1.10/lib/logstash/inputs/file.rb:269:in block in register'", "org/jruby/RubyArray.java:1792:in each'", "C:/busapps/drsb/gbl0/logstash/7.0.0/vendor/bundle/jruby/2.5.0/gems/logstash-input-file-4.1.10/lib/logstash/inputs/file.rb:267:in register'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java_pipeline.rb:191:in block in register_plugins'", "org/jruby/RubyArray.java:1792:in each'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java_pipeline.rb:190:in register_plugins'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java_pipeline.rb:280:in start_inputs'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java_pipeline.rb:244:in start_workers'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java_pipeline.rb:145:in run'", "C:/busapps/drsb/gbl0/logstash/7.0.0/logstash-core/lib/logstash/java_pipeline.rb:104:in block in start'"], :thread=>"#<Thread:0x1721e33d run>"}
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.