Logstash Extractnumbers plugin usage

Hi there,
I have started using Logstash just recently. How do I make use of Extractnumbers plugin with Logstash ?
I can find its usage with options but don't seem to find the simplest example of a basic use case of extracting numbers from a string.

It's just pattern matching. Here is an example

input { generator { count => 1 lines => [ '12 10.1 foo 5 10.2 10' ] } }
filter { extractnumbers {} }
output { stdout { codec => rubydebug { metadata => false } } }

produces

      "int3" => 10,
    "float2" => 10.2,
      "int2" => 5,
      "int1" => 12,
    "float1" => 10.1

Thank you !

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.