Logstash plugin error while running with config file

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 => ["***"] } }

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

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

You have misunderstood the function of the plugin. It does not connect to github. It is a webhook that listens for events that github will POST to it. github connects to the plugin, not the other way around.

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.

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

ok let me try that out.

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

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