Stashing your first event assistance

Hi All,

I'm following the guide to stash first event, but I'm getting an error message in the command line when verifying logstash installation. I can CD to logstash directory but it's when I specify configuration from command line using -e flag where it fails.

I'm typing the following into command line:


This is the error message I get. 
```C:\Elastic Search\logstash-7.12.1\bin>logstash -e 'input { stdin { } } output { stdout {} }'
"Using bundled JDK: ""
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
ERROR: Unknown command '{'

See: 'bin/logstash --help'
[FATAL] 2021-05-23 12:09:02.025 [main] Logstash - Logstash stopped processing because of an error: (SystemExit) exit
org.jruby.exceptions.SystemExit: (SystemExit) exit
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.13.0.jar:?]
        at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.13.0.jar:?]
        at C_3a_.Elastic_20_Search.logstash_minus_7_dot_12_dot_1.vendor.bundle.jruby.$2_dot_5_dot_0.gems.clamp_minus_0_dot_6_dot_5.lib.clamp.command.run(C:/Elastic Search/logstash-7.12.1/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:137) ~[?:?]
        at C_3a_.Elastic_20_Search.logstash_minus_7_dot_12_dot_1.lib.bootstrap.environment.<main>(C:\Elastic Search\logstash-7.12.1\lib\bootstrap\environment.rb:88) ~[?:?]

I see the issue
ERROR: Unknown command '{'

what am I suppose to do though, as this is exactly what is pasted on their guide. I did a copy and paste.

Do we not close the curly braces?

Use double quotes, not single quotes

logstash.bat -e "input {stdin {} } output { stdout{}}"
1 Like

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