README.md in logstash-input-perfmon-0.1.1 vs README.md in logstash-input-perfmon-0.1.2

- old
+ new

@@ -11,18 +11,17 @@ To run the tests (be sure that JRuby is installed prior): ``` git clone https://github.com/NickMRamirez/logstash-input-perfmon.git cd logstash-input-perfmon +jruby -S gem install bundler jruby -S bundle install jruby -S bundle exec rspec spec ``` To build the gem: ``` -git clone https://github.com/NickMRamirez/logstash-input-perfmon.git -cd logstash-input-perfmon gem build logstash-input-perfmon.gemspec ``` To install the gem to logstash: ``` @@ -54,23 +53,35 @@ file { path => "C:\perfmon_output.txt" } } ``` +Run logstash: +``` +logstash -f C:\path\to\conf +``` This configuration will produce output like: ```json { "message":"06/05/2015 15:40:46.999,0.781236,7.032877,6.249891", "@version":"1", "@timestamp":"2015-06-05T19:40:48.468Z", + "host":"Webserver1", "Occurred":"06/05/2015 15:40:46.999", "PrivilegedTime":0.781236, "ProcessorTime":7.032877, "UserTime":6.249891 } ``` -Run logstash: +## Troubleshooting + +If you get bundler errors having to do with not being able to install a gem, such as: ``` - logstash -f C:\path\to\conf -``` +You have requested: + logstash-devutil >= 0 + +The bundle currently has logstash-devutil locked at 0.0.13. +Try running 'bundle update logstash-devutils' +``` +The JRuby -S parameter looks at your PATH and it may be defaulting to another version of Ruby. \ No newline at end of file