# Stashing your first event assistance

**URL:** <https://discuss.elastic.co/t/stashing-your-first-event-assistance/273769>\
**Category:** Logstash\
**Created:** [May 23, 2021, 7:14pm UTC](https://discuss.elastic.co/t/stashing-your-first-event-assistance/273769 "2021-05-23T19:14:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasieltego](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasieltego/32/77950_2.png) [@jasieltego](https://discuss.elastic.co/u/jasieltego)\
**Post date:** [May 23, 2021, 7:14pm UTC](https://discuss.elastic.co/t/stashing-your-first-event-assistance/273769/1 "2021-05-23T19:14:44Z")

</div>

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:

````auto

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) ~[?:?]

````

---

<div class="post-metadata">

**Author:** ![jasieltego](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasieltego/32/77950_2.png) [@jasieltego](https://discuss.elastic.co/u/jasieltego)\
**Post date:** [May 23, 2021, 7:32pm UTC](https://discuss.elastic.co/t/stashing-your-first-event-assistance/273769/2 "2021-05-23T19:32:36Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 23, 2021, 7:34pm UTC](https://discuss.elastic.co/t/stashing-your-first-event-assistance/273769/3 "2021-05-23T19:34:22Z")

</div>

Use double quotes, not single quotes

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 20, 2021, 7:35pm UTC](https://discuss.elastic.co/t/stashing-your-first-event-assistance/273769/4 "2021-06-20T19:35:02Z")

</div>

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