# Error installing beats input plugin

**URL:** <https://discuss.elastic.co/t/error-installing-beats-input-plugin/94848>\
**Category:** Beats\
**Created:** [July 27, 2017, 6:24pm UTC](https://discuss.elastic.co/t/error-installing-beats-input-plugin/94848 "2017-07-27T18:24:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SandhyaRani](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@SandhyaRani](https://discuss.elastic.co/u/SandhyaRani)\
**Post date:** [July 27, 2017, 6:24pm UTC](https://discuss.elastic.co/t/error-installing-beats-input-plugin/94848/1 "2017-07-27T18:24:04Z")

</div>

Hi ,

I am trying to install logstash input beats plugin , I am getting the following error:

File /opt/logstash/Gemfile does not exist or is writable, aborting

I ran the command:  
/opt/logstash$ ./bin/logstash-plugin install logstash-input-beats

Could any one help with this ?  
Thanks!

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [July 27, 2017, 6:30pm UTC](https://discuss.elastic.co/t/error-installing-beats-input-plugin/94848/2 "2017-07-27T18:30:47Z")

</div>

The plugin comes pre-installed with Logstash. Why are you manually installing it?

---

<div class="post-metadata">

**Author:** ![SandhyaRani](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@SandhyaRani](https://discuss.elastic.co/u/SandhyaRani)\
**Post date:** [July 27, 2017, 6:55pm UTC](https://discuss.elastic.co/t/error-installing-beats-input-plugin/94848/3 "2017-07-27T18:55:19Z")

</div>

Thanks Andrew for your reply!

I am getting this error  
when I run:  
./filebeat -e -v -c filebeat.yml

```
2017/07/27 18:49:14.383197 beat.go:285: INFO Home path: [/home/dotisandhyarani/.local/share/Trash/files/filebeat-5.5.1-linux-x86_64] Config path: [/home/dotisandhyarani/.local/share/Trash/files/filebeat-5.5.1-linux-x86_64] Data path: [/home/dotisandhyarani/.local/share/Trash/files/filebeat-5.5.1-linux-x86_64/data] Logs path: [/home/dotisandhyarani/.local/share/Trash/files/filebeat-5.5.1-linux-x86_64/logs]
2017/07/27 18:49:14.383235 beat.go:186: INFO Setup Beat: filebeat; Version: 5.5.1
2017/07/27 18:49:14.383282 metrics.go:23: INFO Metrics logging every 30s
2017/07/27 18:49:14.383322 logstash.go:90: INFO Max Retries set to: 3
2017/07/27 18:49:14.383379 outputs.go:108: INFO Activated logstash as output plugin.
2017/07/27 18:49:14.383484 publish.go:295: INFO Publisher name: sdoti-OptiPlex-9010
2017/07/27 18:49:14.383715 async.go:63: INFO Flush Interval set to: 1s
2017/07/27 18:49:14.383735 async.go:64: INFO Max Bulk Size set to: 2048
2017/07/27 18:49:14.384130 beat.go:221: INFO filebeat start running.
2017/07/27 18:49:14.384195 registrar.go:85: INFO Registry file set to: /home/dotisandhyarani/.local/share/Trash/files/filebeat-5.5.1-linux-x86_64/data/registry
2017/07/27 18:49:14.384246 registrar.go:106: INFO Loading registrar data from /home/dotisandhyarani/.local/share/Trash/files/filebeat-5.5.1-linux-x86_64/data/registry
2017/07/27 18:49:14.384807 registrar.go:123: INFO States Loaded from registrar: 10
2017/07/27 18:49:14.384871 crawler.go:38: INFO Loading Prospectors: 1
2017/07/27 18:49:14.384890 registrar.go:236: INFO Starting Registrar
2017/07/27 18:49:14.384978 sync.go:41: INFO Start sending events to output
2017/07/27 18:49:14.385018 spooler.go:63: INFO Starting spooler: spool_size: 2048; idle_timeout: 5s
2017/07/27 18:49:14.385033 prospector_log.go:65: INFO Prospector with previous states loaded: 0
2017/07/27 18:49:14.385200 prospector.go:124: INFO Starting prospector of type: log; id: 15345013899043771739 
2017/07/27 18:49:14.385230 crawler.go:58: INFO Loading and starting Prospectors completed. Enabled prospectors: 1
2017/07/27 18:49:14.385729 log.go:91: INFO Harvester started for file: /home/dotisandhyarani/Downloads/logstash-5.4.1/bin/test_m8.log
2017/07/27 18:49:14.385772 log.go:91: INFO Harvester started for file: /home/dotisandhyarani/Downloads/logstash-5.4.1/bin/test_small.log
2017/07/27 18:49:14.385877 log.go:91: INFO Harvester started for file: /home/dotisandhyarani/Downloads/logstash-5.4.1/bin/test_exceptions.log
2017/07/27 18:49:14.385892 log.go:91: INFO Harvester started for file: /home/dotisandhyarani/Downloads/logstash-5.4.1/bin/dmc_server1.log
2017/07/27 18:49:14.417999 single.go:140: ERR Connecting error publishing events (retrying): dial tcp 127.0.0.1:5044: getsockopt: connection refused
2017/07/27 18:49:15.418421 single.go:140: ERR Connecting error publishing events (retrying): dial tcp 127.0.0.1:5044: getsockopt: connection refused
2017/07/27 18:49:17.418840 single.go:140: ERR Connecting error publishing events (retrying): dial tcp 127.0.0.1:5044: getsockopt: connection refused
2017/07/27 18:49:21.419246 single.go:140: ERR Connecting error publishing events (retrying): dial tcp 127.0.0.1:5044: getsockopt: connection refused
2017/07/27 18:49:29.419686 single.go:140: ERR Connecting error publishing events (retrying): dial tcp 127.0.0.1:5044: getsockopt: connection refused
2017/07/27 18:49:44.383565 metrics.go:39: INFO Non-zero metrics in the last 30s: filebeat.harvester.open_files=4 filebeat.harvester.running=4 filebeat.harvester.started=4 libbeat.publisher.published_events=2044
2017/07/27 18:49:45.420166 single.go:140: ERR Connecting error publishing events (retrying): dial tcp 127.0.0.1:5044: getsockopt: connection refused
2017/07/27 18:50:14.383621 metrics.go:34: INFO No non-zero metrics in the last 30s
2017/07/27 18:50:17.420670 single.go:140: ERR Connecting error publishing events (retrying): dial tcp 127.0.0.1:5044: getsockopt: connection refused

```

So, I thought this problem (connection refused) is due to beats plugin ,  
can I know why I am getting the above error?

Any help?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [July 28, 2017, 1:31pm UTC](https://discuss.elastic.co/t/error-installing-beats-input-plugin/94848/4 "2017-07-28T13:31:58Z")

</div>

is logstash actually running and reachable on port 5044 (try `telnet localhost 5044`)? The `connection refused` indicates no process listening on port 5044.

---

<div class="post-metadata">

**Author:** ![SandhyaRani](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@SandhyaRani](https://discuss.elastic.co/u/SandhyaRani)\
**Post date:** [July 28, 2017, 2:40pm UTC](https://discuss.elastic.co/t/error-installing-beats-input-plugin/94848/5 "2017-07-28T14:40:06Z")

</div>

Thanks for your reply.

Yeah the problem is port 5044 was not listening

Now its working fine  
I checked using telnet localhost 5044 .

 ![ss](https://us1.discourse-cdn.com/elastic/original/3X/a/1/a1ff952f9ec60e0efd8d5486d4b419a68b17c2a1.png)

Thanks!

---

<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, 6:24pm UTC](https://discuss.elastic.co/t/error-installing-beats-input-plugin/94848/6 "2017-08-17T18:24:28Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
