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/ ~[jruby-complete-]
        at org.jruby.RubyKernel.exit(org/jruby/ ~[jruby-complete-]
        at C_3a_.Elastic_20_Search.logstash_minus_7_dot_12_dot_1.vendor.bundle.jruby.$ 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.