Bootstrap logstash 6.1.1 with Error ' sourceloader - No configuration found in the configured sources.'


(lovedebug) #1

Hi All

I have run the logstash on win10 with multiple piplines and debug enabled.
And i have got below errors.
I have no idea about it as the debug info is not enough.

Regards.

[2017-12-20T17:58:29,823][DEBUG][logstash.runner ] *path.dead_letter_queue: "D:/Workspace/logstash-6/dead_letter_queue" (default: "D:/Workspace/logstash-6/data/dead_letter_queue")
[2017-12-20T17:58:29,823][DEBUG][logstash.runner ] path.settings: "D:/Workspace/logstash-6/config"
[2017-12-20T17:58:29,825][DEBUG][logstash.runner ] *path.logs: "D:/log/logstash" (default: "D:/Workspace/logstash-6/logs")
[2017-12-20T17:58:29,826][DEBUG][logstash.runner ] --------------- Logstash Settings -------------------
[2017-12-20T17:58:29,916][DEBUG][logstash.config.source.multilocal] Reading pipeline configurations from YAML {:location=>"D:/Workspace/logstash-6/config/pipelines.yml"}
[2017-12-20T17:58:30,028][DEBUG][logstash.agent ] Agent: Configuring metric collection
[2017-12-20T17:58:30,135][DEBUG][logstash.instrument.periodicpoller.os] PeriodicPoller: Starting {:polling_interval=>5, :polling_timeout=>120}
[2017-12-20T17:58:30,351][DEBUG][logstash.instrument.periodicpoller.jvm] PeriodicPoller: Starting {:polling_interval=>5, :polling_timeout=>120}
[2017-12-20T17:58:30,612][DEBUG][logstash.instrument.periodicpoller.persistentqueue] PeriodicPoller: Starting {:polling_interval=>5, :polling_timeout=>120}
[2017-12-20T17:58:30,628][DEBUG][logstash.instrument.periodicpoller.deadletterqueue] PeriodicPoller: Starting {:polling_interval=>5, :polling_timeout=>120}
[2017-12-20T17:58:30,690][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.1.1"}
[2017-12-20T17:58:30,710][DEBUG][logstash.agent ] starting agent
[2017-12-20T17:58:30,746][DEBUG][logstash.agent ] Starting puma
[2017-12-20T17:58:30,778][DEBUG][logstash.config.source.multilocal] Reading pipeline configurations from YAML {:location=>"D:/Workspace/logstash-6/config/pipelines.yml"}
[2017-12-20T17:58:31,036][DEBUG][logstash.agent ] Trying to start WebServer {:port=>9600}
[2017-12-20T17:58:31,431][DEBUG][logstash.api.service ] [api-service] start
[ERROR] 2017-12-20 17:58:31.562 [Ruby-0-Thread-1: D:\Workspace\logstash-6\lib\bootstrap\environment.rb:6] sourceloader - No configuration found in the configured sources.
[2017-12-20T17:58:31,603][DEBUG][logstash.agent ] Converging pipelines
[2017-12-20T17:58:31,809][DEBUG][logstash.instrument.periodicpoller.os] PeriodicPoller: Stopping
[2017-12-20T17:58:31,851][DEBUG][logstash.instrument.periodicpoller.jvm] PeriodicPoller: Stopping
[2017-12-20T17:58:31,854][DEBUG][logstash.instrument.periodicpoller.persistentqueue] PeriodicPoller: Stopping
[2017-12-20T17:58:31,856][DEBUG][logstash.instrument.periodicpoller.deadletterqueue] PeriodicPoller: Stopping
[2017-12-20T17:58:31,887][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2017-12-20T17:58:36,998][DEBUG][logstash.agent ] Shutting down all pipelines {:pipelines_count=>0}
[2017-12-20T17:58:37,001][DEBUG][logstash.agent ] Converging pipelines


(Sampath1310) #3

hey lovedebug,
Even i faced same problem on windows using command line
command bin\logstash -f a.conf

Error:

Sending Logstash's logs to C:/Users/sampth/Downloads/logstash-6.1.1/logstash-6.1.1/logs which is now configured via log4j2.properties
[2018-01-06T21:14:04,772][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"C:/Users/sampth/Downloads/logstash-6.1.1/logstash-6.1.1/modules/fb_apache/configuration"}
[2018-01-06T21:14:04,772][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"C:/Users/sampth/Downloads/logstash-6.1.1/logstash-6.1.1/modules/netflow/configuration"}
[2018-01-06T21:14:04,944][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-01-06T21:14:05,366][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.1.1"}
[2018-01-06T21:14:05,445][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"C:/Users/sampth/Downloads/logstash-6.1.1/logstash-6.1.1/a.conf"}
[ERROR] 2018-01-06 21:14:05.453 [Ruby-0-Thread-1: C:\Users\sampth\Downloads\logstash-6.1.1\logstash-6.1.1\lib\bootstrap\environment.rb:6] sourceloader - No configuration found in the configured sources.
[2018-01-06T21:14:05,613][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}

After hard struggle i found that my config format was in .txt format
i again had to save it as a.config file using editor(making sure it is not .txt file)

hope it solves your problem.


(lovedebug) #4

Thanks very much for your reply.

I have tested same config in linux centos, it works fine.
I am still not sure what's wrong for my configs.

Best Regards


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.