# Can't install logstash-output-influxdb plugin

**URL:** <https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890>\
**Category:** Logstash\
**Created:** [January 25, 2023, 7:25am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890 "2023-01-25T07:25:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 25, 2023, 7:25am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/1 "2023-01-25T07:25:49Z")

</div>

Hi,

I'm using Logstash (8.6.0) and want to send data to influxdb2 (2.6.1). But I find that logstash-output-infludb isn't installed by default, so I'm trying to install it. Some errors happen but no details are shown.  
Could you please share me with the way to install this plugin?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [January 25, 2023, 9:11am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/2 "2023-01-25T09:11:51Z")

</div>

You have used this command, right?  
`bin/logstash-plugin install logstash-output-influxdb`  
Are you using proxy?  
Can you copy "Some errors"

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 26, 2023, 12:57am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/3 "2023-01-26T00:57:33Z")

</div>

Hi @Rios  
Thank you. Yes, I was using that command and proxy as well.  
Also, I was trying to follow [the way here](https://discuss.elastic.co/t/how-to-install-logstash-output-influxdb-offline-in-logstash/226193) to install it but still got the same error.

Here is the error message. I only got this one.  
**ERROR: Something went wrong when installing logstash-output-influxdb, message: execution** expired

Btw, even if I tried to install other plugins, I got the same error.

---

<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:** [January 26, 2023, 2:22am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/5 "2023-01-26T02:22:09Z")

</div>

Someone created a version that supports V2 over a year ago, but it has never been merged. See [this](https://github.com/logstash-plugins/logstash-output-influxdb/issues/96) issue.

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 26, 2023, 2:26am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/6 "2023-01-26T02:26:43Z")

</div>

Thank you.  
Sorry, I thought it's better to separate the topics, so I created [another one for influxdb v2 support](https://discuss.elastic.co/t/is-logstash-output-influxdb-plugin-influxdb-v2-support/323985).

Maybe it's kind of getting away from the topic here.  
But that's weird. Someone tried to do that but no further update on that.  
I don't know if maintainers really want to maintain the plugin or not.

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 26, 2023, 2:33am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/7 "2023-01-26T02:33:55Z")

</div>

So will this command check the InfluxDB version before installing plugins?

```auto
bin/logstash-plugin install logstash-output-influxdb

```

---

<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:** [January 26, 2023, 2:35am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/8 "2023-01-26T02:35:52Z")

</div>

> [@AlanChan](#):
>
> will this command check the InfluxDB version

No, it will not.

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 26, 2023, 2:40am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/9 "2023-01-26T02:40:39Z")

</div>

Thank you.

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 26, 2023, 5:43am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/10 "2023-01-26T05:43:13Z")

</div>

I downgraded the logstash version to 7.17 and the problem still exists...and the error message is the same.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [January 26, 2023, 7:37am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/11 "2023-01-26T07:37:31Z")

</div>

You should install via proxy, with LS proxy configuration, or offline more. Check [here](https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html).

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 26, 2023, 7:43am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/12 "2023-01-26T07:43:03Z")

</div>

@Rios  
Thank you. But I also tried the same steps on the link you mentioned. It didn't work.  
Btw, here is the information on my server.

```auto
OS:
Operating System: CentOS Linux 7 (Core)
       CPE OS Name: cpe:/o:centos:centos:7
            Kernel: Linux 3.10.0-1160.el7.x86_64
      Architecture: x86-64

Logstash:
Epoch : 1
Version : 7.6.2
Release : 1
Architecture: noarch

```

Are these compatible?

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 26, 2023, 8:02am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/13 "2023-01-26T08:02:53Z")

</div>

When I used DEBUG mode, I got the same message as here: [5.1.1: Plugin installation behind Proxy - #6 by Roland\_L](https://discuss.elastic.co/t/5-1-1-plugin-installation-behind-proxy/70454/6)

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 26, 2023, 8:11am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/14 "2023-01-26T08:11:05Z")

</div>

```auto
Looking if package named: logstash-output-influxdb exists at https://artifacts.elastic.co/downloads/logstash-plugins/logstash-output-influxdb/logstash-output-influxdb-7.6.2.zip
Net::OpenTimeout: execution expired
          initialize at org/jruby/ext/socket/RubyTCPSocket.java:144
                open at org/jruby/RubyIO.java:1158
             connect at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/net/http.rb:941
             timeout at org/jruby/ext/timeout/Timeout.java:99
             timeout at org/jruby/ext/timeout/Timeout.java:75
             connect at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/net/http.rb:939
            do_start at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/net/http.rb:924
               start at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/net/http.rb:913
               start at /usr/share/logstash/vendor/jruby/lib/ruby/stdlib/net/http.rb:609
               start at /usr/share/logstash/lib/pluginmanager/utils/http_client.rb:14
  remote_file_exist? at /usr/share/logstash/lib/pluginmanager/utils/http_client.rb:32
   get_installer_for at /usr/share/logstash/lib/pluginmanager/pack_fetch_strategy/repository.rb:32
              create at /usr/share/logstash/lib/pluginmanager/install_strategy_factory.rb:23
                each at org/jruby/RubyArray.java:1814
              create at /usr/share/logstash/lib/pluginmanager/install_strategy_factory.rb:22
             execute at /usr/share/logstash/lib/pluginmanager/install.rb:29
                 run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67
             execute at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/subcommand/execution.rb:11
                 run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:67
                 run at /usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/clamp-0.6.5/lib/clamp/command.rb:132
              <main> at /usr/share/logstash/lib/pluginmanager/main.rb:48

```

If you tried to access the link, it's not found.

```auto
https://artifacts.elastic.co/downloads/logstash-plugins/logstash-output-influxdb

```

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [January 26, 2023, 11:01am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/15 "2023-01-26T11:01:09Z")

</div>

I have installed without any problems on LS 8.6

> Validating logstash-output-influxdb  
> Resolving mixin dependencies  
> Installing logstash-output-influxdb  
> Installation successful  
> There is an option to [install from gem](https://discuss.elastic.co/t/how-to-install-logstash-output-influxdb-offline-in-logstash/226193).  
> Or if is possible, just temporary open direct connection to internet.

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 26, 2023, 1:12pm UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/16 "2023-01-26T13:12:46Z")

</div>

@Rios  
Thank you for testing this. Appreciated!!  
Actually, the option you mentioned I've already tried but it didn't work.  
Could you share the OS you used and its version with me?

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [January 26, 2023, 1:14pm UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/17 "2023-01-26T13:14:02Z")

</div>

Windows, if you like I can test on Centos.

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 26, 2023, 1:14pm UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/18 "2023-01-26T13:14:48Z")

</div>

If you can do it, it will be appreciated.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [January 26, 2023, 10:58pm UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/19 "2023-01-26T22:58:07Z")

</div>

The installation has been successfully completed on Centos8, direct access, no proxy.

```auto
 bin/logstash-plugin install logstash-output-influxdb
Using bundled JDK: /usr/share/logstash/jdk
Validating logstash-output-influxdb
Resolving mixin dependencies
Installing logstash-output-influxdb
Installation successful

```

---

<div class="post-metadata">

**Author:** ![AlanChan](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@AlanChan](https://discuss.elastic.co/u/AlanChan)\
**Post date:** [January 27, 2023, 12:27am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/20 "2023-01-27T00:27:43Z")

</div>

@Rios  
Thank you so much. Thanks to you. I'm able to confirm where the problems are. I'll check on my side.

---

<div class="post-metadata">

**Author:** ![Rios](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rios/32/95745_2.png) [@Rios](https://discuss.elastic.co/u/Rios)\
**Post date:** [January 27, 2023, 6:23am UTC](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890/21 "2023-01-27T06:23:37Z")

</div>

- Plugin version: v5.0.6
- Released on: 2021-06-07  
I could say, this is in a production for almost 2 yrs. Don't think this is a bug.  
There is few workarounds for installations, easiest way is either set proxy settings or temporarily open internet if is possible.

[Next page](https://discuss.elastic.co/t/cant-install-logstash-output-influxdb-plugin/323890.md?page=2)
