# Installing Logstash Plugins failing on Windows 10

**URL:** <https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287>\
**Category:** Logstash\
**Created:** [July 16, 2017, 3:56am UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287 "2017-07-16T03:56:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickian](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@patrickian](https://discuss.elastic.co/u/patrickian)\
**Post date:** [July 16, 2017, 3:56am UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287/1 "2017-07-16T03:56:43Z")

</div>

Hi,

I'm using logstash 5.5 running on Windows 10 and I'm trying to install the logstash elapsed filter by running the command

```
./logstash-plugin install logstash-filter-elapsed

```

in the bin folder of my logstash installation. I get the following response

```
Validating logstash-filter-elapsed
Installing logstash-filter-elapsed
Error Bundler::InstallError, retrying 1/10
An error occurred while installing logstash-core (5.5.0), and Bundler cannot continue.
Make sure that `gem install logstash-core -v '5.5.0'` succeeds before bundling.

```

As far as I know, only JDK 8 is required for logstash and I've verified that I do have it. I've tried searching for similar cases but most of them are unresolved or do have HTTP problems. I don't think that connection is the case here, but I'm not sure now either.

I've already installed ruby and tried to run

`gem install logstash-core -v '5.5.0'`

but it's giving me errors as well. I've manually downloaded the gem file from rubyorg but it looks for manticore gem. I've installed manticore gem manually as well but when I try to run install the gem again, it still looks for the manticore gem as a dependency, I think.

Now, I don't really know ruby and I just want to install the elapsed filter and use it on my logstash. Any ideas on why this happens and are there any step-by-step alternatives on how to have the elapsed filter installed?

---

<div class="post-metadata">

**Author:** ![jakelandis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jakelandis/32/36163_2.png) [@jakelandis](https://discuss.elastic.co/u/jakelandis)\
**Post date:** [July 16, 2017, 2:11pm UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287/2 "2017-07-16T14:11:00Z")

</div>

I tried to reproduce from cmd and powershell on Windows 10, and both worked just fine.

```auto
PS Z:\workspace\upgrades\logstash-5.5.0\bin> ./logstash-plugin install logstash-filter-elapsed
Validating logstash-filter-elapsed
Installing logstash-filter-elapsed
Installation successful

```

I would suggest try again, or re-download a fresh copy of 5.5.0 and try again.

---

<div class="post-metadata">

**Author:** ![patrickian](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@patrickian](https://discuss.elastic.co/u/patrickian)\
**Post date:** [July 17, 2017, 12:31am UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287/3 "2017-07-17T00:31:42Z")

</div>

At first, I thought it might have had something to do with access rights to the folder so I made a copy in the desktop and ran the plugin installation from there using powershell and cmd but it gave me the same error. For now, I downloaded the gem manually from rubyorg and installed it as a local gem. I would not prefer this, however.

May I know how your copy was installed? Was it via extracting the zip file or was there something else you did? And are there additional steps aside from installing that I should have done?

Thank you.

---

<div class="post-metadata">

**Author:** ![jakelandis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jakelandis/32/36163_2.png) [@jakelandis](https://discuss.elastic.co/u/jakelandis)\
**Post date:** [July 17, 2017, 2:30pm UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287/4 "2017-07-17T14:30:40Z")

</div>

> May I know how your copy was installed?

It was extracted from a zip from a fresh download of 5.5.0.

---

<div class="post-metadata">

**Author:** ![patrickian](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@patrickian](https://discuss.elastic.co/u/patrickian)\
**Post date:** [July 18, 2017, 12:49am UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287/5 "2017-07-18T00:49:43Z")

</div>

Huh. Interesting. Mine was the same. I'll try downloading a fresh copy today and let you know how it goes. Many Thanks.

---

<div class="post-metadata">

**Author:** ![patrickian](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@patrickian](https://discuss.elastic.co/u/patrickian)\
**Post date:** [July 18, 2017, 3:16am UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287/6 "2017-07-18T03:16:31Z")

</div>

Still failing...

---

<div class="post-metadata">

**Author:** ![Joaquim\_Freitas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joaquim_freitas/32/20113_2.png) [@Joaquim\_Freitas](https://discuss.elastic.co/u/Joaquim_Freitas)\
**Post date:** [July 18, 2017, 11:17pm UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287/7 "2017-07-18T23:17:46Z")

</div>

Hi,

And what is the full path of your Logstash installation, by the way?  
I smell spaces in the installation path, that crashes the execution of Logstash and the plugins installation...  
Either that or installation path permissions.

---

<div class="post-metadata">

**Author:** ![patrickian](https://avatars.discourse-cdn.com/v4/letter/p/c57346/32.png) [@patrickian](https://discuss.elastic.co/u/patrickian)\
**Post date:** [July 19, 2017, 12:35am UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287/8 "2017-07-19T00:35:54Z")

</div>

`C:\Users\<user>\Documents\logstash-5.5.0`

user is my user name. It has no spaces. That's where I ran my last attempt at installing the plugin.

---

<div class="post-metadata">

**Author:** ![jakelandis](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jakelandis/32/36163_2.png) [@jakelandis](https://discuss.elastic.co/u/jakelandis)\
**Post date:** [July 20, 2017, 10:15pm UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287/9 "2017-07-20T22:15:40Z")

</div>

@patrickian  
I recently ran an into an issue on build machine recently that resulted in a similar issue.

Logstash has some very long path names, and can exceed the 260 character limit of Windows.

Assuming you have the most recent updates to Windows 10, you may try set this to 1

`HKLM\SYSTEM\CurrentControlSet\Control\FileSystem LongPathsEnabled`

See

> **[How to Make Windows 10 Accept File Paths Over 260 Characters](https://www.howtogeek.com/266621/how-to-make-windows-10-accept-file-paths-over-260-characters/)**
>
> With the Anniversary Update of Windows 10, you can finally abandon the 260 character maximum path limit in Windows. You just need to make a minor edit to the Windows Registry or Group Policy. Here’s how to make it happen.

  
and  
[https://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx#maxpath](https://msdn.microsoft.com/en-us/library/aa365247(v=vs.85).aspx#maxpath)

---

<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 17, 2017, 10:16pm UTC](https://discuss.elastic.co/t/installing-logstash-plugins-failing-on-windows-10/93287/10 "2017-08-17T22:16:10Z")

</div>

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