Skip to content

pure ruby regexp <capture:int> coercion does not work #164

Open
@kares

Description

@kares

sample (?<throughputtime:int>[0-9]+) instead of captuing

  • "throughputtime" => 1760 in LS 1.4.2
  • ends up capturing "int" => "1760" tested LS 6.8 and 7.7

seems to have been working (coercing) at some point around LS 1.4.2 but not since 1.5

the cause seems to be the 'optimization' in grok gem (since 0.11.0):
jordansissel/ruby-grok@288fcc2#diff-0badcaad3c9a90480e7857e04b49fb3cR145

origin bug report: elastic/logstash#3557

NOTE: Grok.new is also used in multi-line - require "grok-pure" directly!

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