jigar
(jigar)
June 16, 2015, 5:05pm
1
Hi Guys,
I am new to logstash. I am struggling to make it working on my windows 8.1 machine. I am trying to use logstash-1.5.0.
I am following below url to get going:
https://www.elastic.co/guide/en/logstash/current/getting-started-with-logstash.html
I have downloaded logstash and set up java path in environment variable.
When I try to execute follwoing command from logstash-1.5.0/bin folder
logstash -e 'input { stdin { } } output { stdout {} }'
command prompt gives me error as It says could not recognize command.
Can anyone please help/guide me ?
Thanks
Hi,
You need to run the logstash.bat
command instead of logstash
while running in the Windows environment.
For ex: (inside the logstash/bin
folder)
logstash.bat -e 'input { stdin { } } output { stdout {} }'
Thanks and Regards,
Chaitanya Varanasi
jigar
(jigar)
June 17, 2015, 12:45pm
3
Hi Chaitanya,
Thanks for your reply. I have tried that but is is not working as well. I have attached screen grab here.
I know there is something silly stuff I am missing but can't spot it right now.
Kind Regards,
Jigar
jigar
(jigar)
June 18, 2015, 11:57am
4
Hi,
I manage to go bit further, and getting new error now. I have attached screenshot here. Can anyone please help/guide me?
I am using windows8.1 os and logstash 1.5.0. I have installed ruby on my machine already.
Thanks,
Jigar
abcfy2
(Feng Yu (Abcfy2))
June 18, 2015, 2:28pm
5
You must use "
instead '
. Because windows cmd
do not recognize '
with args.
e.g.:
:: right, can be executed
ren "a b" "c d"
:: wrong, cmd can not parse single quote
ren 'a b' 'c d'
Also, .bat
can be omitted, because cmd could recognize the execute program with specified file name automatically.
jigar
(jigar)
June 18, 2015, 2:38pm
6
Hi,
Thanks for looking into this. I did try your suggestion but not luck. I have attached screenshot here.
Thanks,
Jigar
abcfy2
(Feng Yu (Abcfy2))
June 19, 2015, 2:33am
7
Did you download from logstash download page ?
Don't download zip from github , it's only for developers and does not provide bundle dependencies.
It works for me here(windows 8.1):
jigar
(jigar)
June 19, 2015, 9:57am
8
Hi,
You are right I was using developer version. I downloaded proper one now and it works as expected.
Thanks a Lot
Kind Regards,
Jigar