Logstash asking filter file path

(Rijin) #1

Hi ,

I am using logstash 6.3.2 . Installed from rpm .

My issuse is my filter file's path is mentioned in logstash.yml .
But again the logstash asking for filter file path .

My conf:

path.config: /etc/logstash/conf.d/filter.config

And the filter file is placed in /etc/logstash/conf.d/

When I am running the command

./bin/logstash -f /etc/logstash/conf.d/filter.config

LOgstash working.

When I am running this command ./bin/logstash
Logstash asking filter file path

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 errors to the console
ERROR: Failed to read pipelines yaml file. Location: /usr/share/logstash/config/pipelines.yml
bin/logstash -f CONFIG_PATH [-t] [-r] [] [-w COUNT] [-l LOG]
bin/logstash -e CONFIG_STR [-t] [--log.level fatal|error|warn|info|debug|trace] [-w COUNT] [-l LOG]
bin/logstash -i SHELL [--log.level fatal|error|warn|info|debug|trace]
bin/logstash -V [--log.level fatal|error|warn|info|debug|trace]
bin/logstash --help
[ERROR] 2018-10-01 09:00:51.576 [LogStash::Runner] Logstash - java.lang.IllegalStateException: Logstash stopped processing because of an error: (SystemExit) exit

(Magnus Bäck) #2

Where is your logstash.yml?

(Rijin) #3


(Rijin) #4

I am installed form RPM file .

Because of that I am not created the $LS_HOME

Is this make any problems ?

(Magnus Bäck) #5

No, but it's very surprising that Logstash complains about the non-existence of /etc/logstash/logstash.yml if you actually have a file there.

(Rijin) #6

Hi Self healed .

I am solved this by copied logstash.yml to /usr/share/logstash/config/

cp /etc/logstash/logstash.yml /usr/share/logstash/config/

Now without -f conf file path ./bin/logstash woking

./bin/logstash working now . Parsing the proper file

(Rijin) #7

Hi All ,

The error reasons founded.....

Reason LS_HOME and LS_SETTINGS_DIR not entered:

From terminal try this command to set LS_HOME and LS_SETTINGS_DIR

export LS_HOME=/usr/share/logstash/
export LS_SETTINGS_DIR=/etc/logstash/
export PATH=$PATH:$LS_HOME/bin
export PATH

(system) #8

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