Quick way to test logstash config file?

I just started with logstash. I am tune with the config fie.
I wonder if I must run following everytime with any change? It takes a long time to start.
Any grammar checker or a quick way to test what the config file going to do?

logstash.bat -f C:\tmp\elk\TASpattern\jmaster.conf

Yes logstash start is so slow I use reload automatic parameter see below
this will start logstash and you can update any parameter it will reload it automatically
in case there is an err it keeps printing the err message on default output (terminal) as soon as you fix it

bin/logstash -f configfile.conf --config.reload.automatic

my best practice working with logstash is to run it this way w automatic reload having output to screen
and I randomly put line by line to the tail of this file and check the desired output

I was curious of are others best practices to dev with logstash?

Hello,
1.Make sure elasticsearch is up and running.
2.Open logstash folder in cmd,
cd logstash
3.Take sample config file and copy sample data shown in below example into sample.conf and copy the sample.conf file in logstash folder
Ex;-
input{stdin{}}output{stdout{}}
4.Now execute as shown below

logstash>bin\logstash -f sample.conf

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