kopacko
(Jason Kopacko)
August 20, 2020, 7:59pm
1
I am trying to parse a message that will have multiple items that I am trying to capture into an array.
For example :
message: test message @word blah blah @word test ...
In this case, the number of captures can and will be different per message field.
I cannot seem to figure how to capture these specific words that start with an @ symbol.
Badger
August 20, 2020, 8:18pm
2
I would do that in ruby
ruby { code => 'event.set("matches", event.get("message").scan(/@\w+/))' }
Badger
August 24, 2020, 12:26am
4
Can you expand on your objection to using a ruby filter in logstash?
kopacko
(Jason Kopacko)
August 24, 2020, 10:59pm
5
Is that a plugin that has to be installed? I am trying to stay with the native plugins.
Badger
August 24, 2020, 11:31pm
6
It is installed by default.
kopacko
(Jason Kopacko)
August 25, 2020, 1:29am
7
Ah ok. I might it whirl then. Thank you sir.
system
(system)
Closed
September 22, 2020, 1:29am
8
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.