Hi,
I have installed logstash in my machine and I am getting below mentioned error while installing.Kindly help me.
[2018-04-19T23:49:11,825][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"C:/Users/518785/ELK/logstash-6.2.3/bin/logstash-simple.conf"}
[2018-04-19T23:49:11,825][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2018-04-19T23:49:12,257][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
Can you post your config files here, perhaps your config files are missing anything. What is your path where you store your config files ? Do you set a custom directory in the settings?
And please check that logstash can read the files (or have the permissions to read it).
replace your_path_to_LOGSTASH_bat to the path where your logstash.bat is, and replace yourPathTOyourLogStashConf with the path to your logstash.conf which has the input, filter and output sections.
Polter I have executed the path and getting the same error. Please check.
C:\Users\518785\ELK\logstash-6.2.3\bin>logstash -f logstash-conf
Sending Logstash's logs to C:/Users/518785/ELK/logstash-6.2.3/logs which is now configured via log4j2.properties
[2018-04-22T22:16:23,051][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"C:/Users/518785/ELK/logstash-6.2.3/modules/fb_apache/configuration"}
[2018-04-22T22:16:23,098][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"C:/Users/518785/ELK/logstash-6.2.3/modules/netflow/configuration"}
[2018-04-22T22:16:23,332][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-04-22T22:16:23,943][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.2.3"}
[2018-04-22T22:16:24,068][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"C:/Users/518785/ELK/logstash-6.2.3/bin/logstash-conf"}
[2018-04-22T22:16:24,099][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2018-04-22T22:16:24,545][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
First a full qualified path-name is for example C:\myElasticInstallation\logstash.config.
It's important that you write out the complete path name to link to your config.
Please check if your file existst, in your picture which you send above, I can not see a file which has the name logstash-conf.
And if you want to use the-t flag you must also write the flag -f C:\YourPathToYourConfig,
so the command must looks like this: logstash.bat -f C:\YourPathToYourConfig -t
Polter I have logstash-simple.conf file in config folder.I have tested the command with correct path and getting java exception .Please advice on it.
C:\Users\518785\ELK\logstash-6.2.3\bin>logstash.bat -f C:\Users\518785\ELK\logstash-6.2.3\config -t
Sending Logstash's logs to C:/Users/518785/ELK/logstash-6.2.3/logs which is now configured via log4j2.properties
[2018-04-24T02:22:43,428][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"C:/Users/518785/ELK/logstash-6.2.3/modules/fb_apache/configuration"}
[2018-04-24T02:22:43,444][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"C:/Users/518785/ELK/logstash-6.2.3/modules/netflow/configuration"}
[2018-04-24T02:22:43,660][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-04-24T02:22:43,961][FATAL][logstash.runner ] The given configuration is invalid. Reason: Expected one of #, input, filter, output at line 6, column 1 (byte 132) after ## JVM configuration
Xms represents the initial size of total heap space
Xmx represents the maximum size of total heap space
Hey @manojbhupatiraju,
Please also write the file name behind your path, like this: logstash.bat -f C:\Users\518785\ELK\logstash-6.2.3\config\logstash-simple.conf -t
Polter,
I have re installed (logstash-6.2.4)tested it but issue is same.
C:\Users\518785\ELK\logstash-6.2.4\bin>logstash.bat -f C:\Users\518785\ELK\logstash-6.2.4\config\logstash-simple.conf -t
Sending Logstash's logs to C:/Users/518785/ELK/logstash-6.2.4/logs which is now configured via log4j2.properties
[2018-04-26T01:46:03,268][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"C:/Users/518785/ELK/logstash-6.2.4/modules/fb_apache/configuration"}
[2018-04-26T01:46:03,286][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"C:/Users/518785/ELK/logstash-6.2.4/modules/netflow/configuration"}
[2018-04-26T01:46:03,503][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-04-26T01:46:03,576][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"C:/Users/518785/ELK/logstash-6.2.4/config/logstash-simple.conf"}
[2018-04-26T01:46:03,591][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
Configuration OK
[2018-04-26T01:46:03,591][INFO ][logstash.runner ] Using config.test_and_exit mode. Config Validation Result: OK. Exiting Logstash
C:\Users\518785\ELK\logstash-6.2.4\bin>logstash.bat -f C:\Users\518785\ELK\logstash-6.2.4\config\logstash-simple.conf
Sending Logstash's logs to C:/Users/518785/ELK/logstash-6.2.4/logs which is now configured via log4j2.properties
[2018-04-26T01:47:06,113][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"fb_apache", :directory=>"C:/Users/518785/ELK/logstash-6.2.4/modules/fb_apache/configuration"}
[2018-04-26T01:47:06,138][INFO ][logstash.modules.scaffold] Initializing module {:module_name=>"netflow", :directory=>"C:/Users/518785/ELK/logstash-6.2.4/modules/netflow/configuration"}
[2018-04-26T01:47:06,343][WARN ][logstash.config.source.multilocal] Ignoring the 'pipelines.yml' file because modules or command line options are specified
[2018-04-26T01:47:06,559][INFO ][logstash.agent ] No persistent UUID file found. Generating new UUID {:uuid=>"bf8b377b-e78e-4aae-b4f2-45060e852c7e", :path=>"C:/Users/518785/ELK/logstash-6.2.4/data/uuid"}
[2018-04-26T01:47:07,245][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.2.4"}
[2018-04-26T01:47:07,414][INFO ][logstash.config.source.local.configpathloader] No config files found in path {:path=>"C:/Users/518785/ELK/logstash-6.2.4/config/logstash-simple.conf"}
[2018-04-26T01:47:07,442][ERROR][logstash.config.sourceloader] No configuration found in the configured sources.
[2018-04-26T01:47:07,792][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
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.