Skip to content

Sending ip_address in the user property #10

@dossy

Description

@dossy

My output looks like this:

  sentry {
    key => "..."
    secret => "..."
    project_id => "..."
    user => "ip_address:%{clientip}"
    message => "errorcode"
    level => "[@metadata][sentry][level]"
  }

Unfortunately, it seems like Sentry is ignoring the user value. I also tried:

    user => { "ip_address" => "%{clientip}" }

No luck. This actually throws an error. But, really, user should take a hash ... so, what needs to happen to make this possible?

Actually trying to use a hash like the example shown is faced with this error message:

[2019-02-18T04:07:50,232][WARN ][logstash.outputs.sentry  ] Unhandled exception {:exception=>java.lang.ClassCastException: Cannot cast org.jruby.specialized.RubyArrayTwoObject to org.jruby.RubyString}

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions