# Logstash plugin error while running with config file

**URL:** <https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860>\
**Category:** Logstash\
**Created:** [October 23, 2019, 11:53am UTC](https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860 "2019-10-23T11:53:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![manu4387](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@manu4387](https://discuss.elastic.co/u/manu4387)\
**Post date:** [October 23, 2019, 11:53am UTC](https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860/1 "2019-10-23T11:53:17Z")

</div>

I am getting this error while running the github plugin in logstash.

Plugin: \<LogStash::Inputs::GitHub id=\>"a8d9de94a4535953974b37dedbea2c29254692fa33ebd1b70372cf8413e435f2", port=\>22, secret\_token=\>"3e27bb366ae773d231ad4dacc227f572eadb75bb", ip=\>"185.199.108.0", enable\_metric=\>true, codec=\>\<LogStash::Codecs::Plain id=\>"plain\_7caf9305-ca4e-477d-9716-399b9f37d5af", enable\_metric=\>true, charset=\>"UTF-8"\>, drop\_invalid=\>false\>  
Error: Can't assign requested address - bind - Cannot assign requested address: bind  
Exception: Errno::EADDRNOTAVAIL  
Stack: org/jruby/ext/socket/RubyTCPServer.java:127:in `initialize'

here is my config file for input:

input { github {  
ip =\> "185.199.108.0"  
port =\> "22"  
secret\_token =\> ["\*\*\*"] } }

---

<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:** [October 23, 2019, 12:14pm UTC](https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860/2 "2019-10-23T12:14:57Z")

</div>

Is 185.199.108.0 one of the IP addresses of the server where you are running logstash?

---

<div class="post-metadata">

**Author:** ![manu4387](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@manu4387](https://discuss.elastic.co/u/manu4387)\
**Post date:** [October 23, 2019, 12:27pm UTC](https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860/3 "2019-10-23T12:27:57Z")

</div>

No it is the IP address i have taken from the GITHUB meta page as i need to get the input from github , so its the IP address of Github

[https://api.github.com/meta](https://api.github.com/meta)

---

<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:** [October 23, 2019, 12:49pm UTC](https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860/4 "2019-10-23T12:49:26Z")

</div>

You have misunderstood the function of the plugin. It does not connect to github. It is a [webhook](https://developer.github.com/webhooks/) that listens for events that github will POST to it. github connects to the plugin, not the other way around.

---

<div class="post-metadata">

**Author:** ![manu4387](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@manu4387](https://discuss.elastic.co/u/manu4387)\
**Post date:** [October 23, 2019, 12:59pm UTC](https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860/5 "2019-10-23T12:59:17Z")

</div>

ohh got it thanks for the reply !!! Is there any way to connect to github and ingest the data in elastic search .. i dont want to use the kibana code which is available in 7.4 version.

---

<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:** [October 23, 2019, 1:02pm UTC](https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860/6 "2019-10-23T13:02:03Z")

</div>

You might be able to do it using an http\_poller input or an http filter.

---

<div class="post-metadata">

**Author:** ![manu4387](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@manu4387](https://discuss.elastic.co/u/manu4387)\
**Post date:** [October 23, 2019, 1:03pm UTC](https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860/7 "2019-10-23T13:03:06Z")

</div>

ok let me try that out.

---

<div class="post-metadata">

**Author:** ![manu4387](https://avatars.discourse-cdn.com/v4/letter/m/53a042/32.png) [@manu4387](https://discuss.elastic.co/u/manu4387)\
**Post date:** [October 23, 2019, 1:49pm UTC](https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860/8 "2019-10-23T13:49:42Z")

</div>

Its not working with this ☹ . I think only option left is the api code.

---

<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:** [November 20, 2019, 1:49pm UTC](https://discuss.elastic.co/t/logstash-plugin-error-while-running-with-config-file/204860/9 "2019-11-20T13:49:49Z")

</div>

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