Hi,
I am using Logwatcher Plugin for logs for my application.when i am running it on linux it is working fine but when i am running the same on windows it is giving error while running newrelic_logwatcher_agent.rb file.
Error i am getting is:-
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/component.rb:14:in key': undefined method+' for nil:NilClass (NoMethodError)
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:101:in component_has_metrics?' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:85:inblock in build_components_array'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:84:in each' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:84:inbuild_components_array'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:69:in build_request_data_structure' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:16:indeliver'
from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_plugin/run.rb:128:in loop_forever' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_plugin/run.rb:15:insetup_and_run'
from newrelic_Logwatcher_agent.rb:137:in <module:LogwatcherAgent>' from newrelic_Logwatcher_agent.rb:66:in'
Hi, I am using Logwatcher Plugin for logs for my application.when i am running it on linux it is working fine but when i am running the same on windows it is giving error while running newrelic_logwatcher_agent.rb file.
Error i am getting is:-
C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/component.rb:14:in'
key': undefined method
+' for nil:NilClass (NoMethodError) from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:101:incomponent_has_metrics?' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:85:in
block in build_components_array' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:84:ineach' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:84:in
build_components_array' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:69:inbuild_request_data_structure' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_platform_binding/request.rb:16:in
deliver' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_plugin/run.rb:128:inloop_forever' from C:/Ruby23-x64/lib/ruby/gems/2.3.0/gems/newrelic_plugin-1.3.1/lib/newrelic_plugin/run.rb:15:in
setup_and_run' from newrelic_Logwatcher_agent.rb:137:in<module:LogwatcherAgent>' from newrelic_Logwatcher_agent.rb:66:in