Made progress by creating a pipeline.conf file in logstash and running the command bin/logstash -f pieline.conf
After the DEBUG- Skipping the following files statement, I dont get any errors but still logstash runs for seconds only. What is the issue here? Where would I give location of the logs I want to be passed?
2019-10-30T11:35:15,339][DEBUG][logstash.config.source.local.configpathloader] Reading config file {:config_file=>"/home/mehak/Documents/logstash-7.4.0/pipeline.conf"}
[2019-10-30T11:35:15,423][DEBUG][logstash.agent ] Converging pipelines state {:actions_count=>1}
[2019-10-30T11:35:15,466][DEBUG][logstash.agent ] Executing action {:action=>LogStash::PipelineAction::Create/pipeline_id:main}
[2019-10-30T11:35:15,799][DEBUG][org.logstash.secret.store.SecretStoreFactory] Attempting to exists or secret store with implementation: org.logstash.secret.store.backend.JavaKeyStore
[2019-10-30T11:35:16,142][DEBUG][logstash.javapipeline ] Starting pipeline {:pipeline_id=>"main"}
[2019-10-30T11:35:16,191][WARN ][org.logstash.instrument.metrics.gauge.LazyDelegatingGauge][main] A gauge metric of an unknown type (org.jruby.RubyArray) has been create for key: cluster_uuids. This may result in invalid serialization. It is recommended to log an issue to the responsible developer/development team.
[2019-10-30T11:35:16,194][INFO ][logstash.javapipeline ][main] Starting pipeline {:pipeline_id=>"main", "pipeline.workers"=>4, "pipeline.batch.size"=>125, "pipeline.batch.delay"=>50, "pipeline.max_inflight"=>500, :thread=>"#<Thread:0x26aff7df run>"}
[2019-10-30T11:35:16,240][INFO ][logstash.javapipeline ][main] Pipeline started {"pipeline.id"=>"main"}
[2019-10-30T11:35:16,268][DEBUG][logstash.javapipeline ] Pipeline started successfully {:pipeline_id=>"main", :thread=>"#<Thread:0x26aff7df run>"}
[2019-10-30T11:35:16,345][DEBUG][logstash.javapipeline ][main] Input plugins stopped! Will shutdown filter/output workers. {:pipeline_id=>"main", :thread=>"#<Thread:0x26aff7df run>"}
[2019-10-30T11:35:16,346][DEBUG][org.logstash.execution.PeriodicFlush][main] Pushing flush onto pipeline.
[2019-10-30T11:35:16,385][DEBUG][logstash.javapipeline ][main] Shutdown waiting for worker thread {:pipeline_id=>"main", :thread=>"#<Thread:0x3b090fe2 run>"}
[2019-10-30T11:35:16,425][DEBUG][logstash.javapipeline ][main] Shutdown waiting for worker thread {:pipeline_id=>"main", :thread=>"#<Thread:0x7664fdfb run>"}
[2019-10-30T11:35:16,432][INFO ][logstash.agent ] Pipelines running {:count=>1, :running_pipelines=>[:main], :non_running_pipelines=>}
[2019-10-30T11:35:16,438][DEBUG][logstash.javapipeline ][main] Shutdown waiting for worker thread {:pipeline_id=>"main", :thread=>"#<Thread:0x1710ef6 dead>"}
[2019-10-30T11:35:16,438][DEBUG][logstash.javapipeline ][main] Shutdown waiting for worker thread {:pipeline_id=>"main", :thread=>"#<Thread:0x7dac9bdd dead>"}
[2019-10-30T11:35:16,448][DEBUG][logstash.javapipeline ][main] Pipeline has been shutdown {:pipeline_id=>"main", :thread=>"#<Thread:0x26aff7df run>"}
[2019-10-30T11:35:16,491][DEBUG][logstash.agent ] Starting puma
[2019-10-30T11:35:16,510][DEBUG][logstash.agent ] Trying to start WebServer {:port=>9600}
[2019-10-30T11:35:16,522][DEBUG][logstash.instrument.periodicpoller.os] Stopping
[2019-10-30T11:35:16,555][DEBUG][logstash.instrument.periodicpoller.jvm] Stopping
[2019-10-30T11:35:16,558][DEBUG][logstash.instrument.periodicpoller.persistentqueue] Stopping
[2019-10-30T11:35:16,560][DEBUG][logstash.instrument.periodicpoller.deadletterqueue] Stopping
[2019-10-30T11:35:16,578][DEBUG][logstash.agent ] Shutting down all pipelines {:pipelines_count=>0}
[2019-10-30T11:35:16,579][DEBUG][logstash.agent ] Converging pipelines state {:actions_count=>0}
[2019-10-30T11:35:16,586][DEBUG][logstash.api.service ] [api-service] start
[2019-10-30T11:35:16,808][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2019-10-30T11:35:21,814][INFO ][logstash.runner ] Logstash shut down