Page 1 of 1

Error running bundle install on Nagios Log Server

Posted: Fri Apr 03, 2020 1:09 pm
by Sampath.Basireddy
Hello There,

Am trying to configure logstash input plugin for Okta. Instructions at this link: https://github.com/SecurityRiskAdvisors ... system_log


Using below command, I created a new plugin:

Code: Select all

[root@nagioslsd1 bin]# ./logstash-plugin generate --type input --name logstash-input-okta --path /usr/local/Logstash-okta/plugin
 Creating /usr/local/Logstash-okta/plugin/logstash-input-logstash-input-okta
	 create logstash-input-logstash-input-okta/CHANGELOG.md
	 create logstash-input-logstash-input-okta/CONTRIBUTORS
	 create logstash-input-logstash-input-okta/DEVELOPER.md
	 create logstash-input-logstash-input-okta/Gemfile
	 create logstash-input-logstash-input-okta/LICENSE
	 create logstash-input-logstash-input-okta/README.md
	 create logstash-input-logstash-input-okta/Rakefile
	 create logstash-input-logstash-input-okta/lib/logstash/inputs/logstash-input-okta.rb
	 create logstash-input-logstash-input-okta/logstash-input-logstash-input-okta.gemspec
	 create logstash-input-logstash-input-okta/spec/inputs/logstash-input-okta_spec.rb
As per the instruction, am installing dependencies, not entirely sure if it is necessary or not, but when I run bundle install, I get below error:

Code: Select all

[root@nagioslsd1 bin]$ bundle install
Fetching source index from https://rubygems.org/
Resolving dependencies...
Could not find gem 'logstash-core (= 2.4.1) ruby' in the gems available on this machine.
And when I try to install plugin I get an error:

Code: Select all

[root@nagioslsd1 bin]# ./logstash-plugin install --no-verify
Installing...
WARNING: SSLSocket#session= is not supported
Plugin not found, aborting
ERROR: Installation Aborted, message: Could not find gem 'logstash-input-okta_system_log-master (>= 0) java' in any of the gem sources listed in your Gemfile or installed on this machine.
I tried building a gemfile and got below error:

Code: Select all

[root@nagioslsd1 logstash-input-logstash-input-okta]# gem build logstash-input-logstash-input-okta.gemspec
ERROR:  While executing gem ... (Gem::InvalidSpecificationException)
    "FIXME" or "TODO" is not a description
Please suggest.

Re: Error running bundle install on Nagios Log Server

Posted: Fri Apr 03, 2020 3:37 pm
by cdienger
Try installing it instead by running this from the NLS command line:

Code: Select all

/usr/local/nagioslogserver/logstash/bin/install logstash-input-okta_enterprise