No log4j2 configuration file found when trying to load test data from X-pack learning tutorial


(Lasse Work Bøg) #1

Hello out there :slight_smile:

im having trouble getting data loaded for training purpose with the x-pack tutorial. (Lab 1) Im not sure where to start with this error since the files it mentions are in the correct places.
here is what my terminal have to say:

root@Infowise:/usr/share/logstash/bin# cat stocks.csv | ./logstash -f stocks.conf
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults
Could not find log4j2 configuration at path //usr/share/logstash/config/log4j2.properties. Using default config which logs to console
10:57:36.490 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - Elasticsearch pool URLs updated {:changes=>{:removed=>[], :added=>[http://elastic:xxxxxx@127.0.0.1:9200/]}}
10:57:36.493 [[main]-pipeline-manager] INFO logstash.outputs.elasticsearch - Running health check to see if an Elasticsearch connection is working {:healthcheck_url=>http://elastic:xxxxxx@127.0.0.1:9200/, :path=>"/"}

root@Infowise:/usr/share/logstash/bin# ls
cpdump ingest-convert.sh logstash logstash.bat logstash.lib.sh logstash-plugin logstash-plugin.bat ruby setup.bat stocks.conf stocks.csv system-install

root@Infowise:/etc/logstash# ls
conf.d jvm.options log4j2.properties logstash.yml startup.options


(Eddie Turizo) #3

@Ferrow

im having trouble getting data loaded for training purpose with the x-pack tutorial. (Lab 1) Im not sure where to start with this error since the files it mentions are in the correct places.
here is what my terminal have to say:

root@Infowise:/usr/share/logstash/bin# cat stocks.csv | ./logstash -f stocks.conf
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.

It is a known issue and can be ignored as recommended in this thread.

https://discuss.elastic.co/t/logstash-5-5-0-error-statuslogger-no-log4j2-configuration-file-found/92921


(system) #4

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