rundeck-plugins / rundeck-logstash-plugin

Pipe all Rundeck log output to a Logstash server
28 stars 18 forks source link

rundeck 2.7.1 #3

Open rrblocker opened 7 years ago

rrblocker commented 7 years ago

Hi,

I am unable to get this to work with rundeck 2.7.1 running on Red Hat Enterprise Linux Server release 6.8.

I placed the LogstashPlugin.groovy file in /var/lib/rundeck/libext/, and added these lines to the config files:

When I restart rundeckd, I get no logs in elasticsearch.

I am running a relatively old version of logstash (1.5.4), but the problem doesn't seem to be there because the TCP listener on port 9700 is open and I can connect to it using netcat. My config for logstash:


input {
  tcp {
    codec => "json"
    host => "localhost"
    mode => server
    port => 9700
    tags => ["rundeck"]
    type => "rundeck"
  }
}

output {
  redis { host => "not-real.example.com" data_type => "list" key => "logstash" }
}

It appears that rundeck is not opening a connection to localhost, because netstat never shows ESTABLISHED, only LISTENING for port 9700.

I tried enabling DEBUG in the logs, but there was nothing indicating a problem.