# Keystore Issue on Suse and windows

**URL:** <https://discuss.elastic.co/t/keystore-issue-on-suse-and-windows/278275>\
**Category:** Logstash\
**Tags:** elastic-stack-security\
**Created:** [July 9, 2021, 11:21am UTC](https://discuss.elastic.co/t/keystore-issue-on-suse-and-windows/278275 "2021-07-09T11:21:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashwin\_Patil1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ashwin_patil1/32/90642_2.png) [@Ashwin\_Patil1](https://discuss.elastic.co/u/Ashwin_Patil1)\
**Post date:** [July 9, 2021, 11:21am UTC](https://discuss.elastic.co/t/keystore-issue-on-suse-and-windows/278275/1 "2021-07-09T11:21:55Z")

</div>

I am trying to create logstash keystore and winlogbeat keystore, but I am getting the below error.

However I was able to create filebeat keystore.

Below is the error for logstash on Suse linux,

```auto
localhost:/usr/share/logstash # bin/logstash-keystore create
Using bundled JDK: /usr/share/logstash/jdk
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
WARNING: Could not find logstash.yml which is typically located in $LS_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults

[ERROR] 2021-07-09 12:18:32.196 [main] secretstorecli - Error while trying to create the Logstash keystore. Please ensure that path to /usr/share/logstash/config/logstash.keystore exists and is writable {:cause=>java.nio.file.NoSuchFileException: /usr/share/logstash/config/logstash.keystore, :backtrace=>["org.logstash.secret.store.backend.JavaKeyStore.create(org/logstash/secret/store/backend/JavaKeyStore.java:116)", "org.logstash.secret.store.backend.JavaKeyStore.create(org/logstash/secret/store/backend/JavaKeyStore.java:59)", "org.logstash.secret.store.SecretStoreFactory.doIt(org/logstash/secret/store/SecretStoreFactory.java:131)", "org.logstash.secret.store.SecretStoreFactory.create(org/logstash/secret/store/SecretStoreFactory.java:95)", "org.logstash.secret.cli.SecretStoreCli.deleteThenCreate(org/logstash/secret/cli/SecretStoreCli.java:208)", "org.logstash.secret.cli.SecretStoreCli.create(org/logstash/secret/cli/SecretStoreCli.java:202)", "org.logstash.secret.cli.SecretStoreCli.command(org/logstash/secret/cli/SecretStoreCli.java:87)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)", "jdk.internal.reflect.NativeMethodAccessorImpl.invoke(jdk/internal/reflect/NativeMethodAccessorImpl.java:62)", "jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(jdk/internal/reflect/DelegatingMethodAccessorImpl.java:43)", "java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:566)", "org.jruby.javasupport.JavaMethod.invokeDirectWithExceptionHandling(org/jruby/javasupport/JavaMethod.java:426)", "org.jruby.javasupport.JavaMethod.invokeDirect(org/jruby/javasupport/JavaMethod.java:293)", "usr.share.logstash.lib.secretstore.cli.<module:SecretStoreCli>(/usr/share/logstash/lib/secretstore/cli.rb:52)", "usr.share.logstash.lib.secretstore.cli.<main>(/usr/share/logstash/lib/secretstore/cli.rb:33)", "java.lang.invoke.MethodHandle.invokeWithArguments(java/lang/invoke/MethodHandle.java:710)", "org.jruby.Ruby.runScript(org/jruby/Ruby.java:1205)", "org.jruby.Ruby.runNormally(org/jruby/Ruby.java:1128)", "org.jruby.Ruby.runNormally(org/jruby/Ruby.java:1146)", "org.jruby.Ruby.runFromMain(org/jruby/Ruby.java:958)", "org.jruby.Main.doRunFromMain(org/jruby/Main.java:400)", "org.jruby.Main.internalRun(org/jruby/Main.java:292)", "org.jruby.Main.run(org/jruby/Main.java:234)", "org.jruby.Main.main(org/jruby/Main.java:206)"]}

```

Below is the error for winlogbeat on windows,

```auto
PS C:\Windows\system32> winlogbeat keystore create
winlogbeat : The term 'winlogbeat' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ winlogbeat keystore create
+ ~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (winlogbeat:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

```

---

<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:** [August 6, 2021, 11:22am UTC](https://discuss.elastic.co/t/keystore-issue-on-suse-and-windows/278275/2 "2021-08-06T11:22:25Z")

</div>

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