Skip to content

error while running newrelic_logwatcher_agent.rb file in windows #58

@harishgarg0502

Description

@harishgarg0502

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

'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions