I have a very simple message coming in my logstash, I want to create two fields that are inside this message.
if [message] =~ /.*My process: (?<myfield1>[A-Z]+) - (?<myfield2>[A-Z]+).*/ {
mutate {
add_field => [ "event_type", "eventType" ]
add_tag => ["myTag"]
add_tag => ["MySecondTag"] } }
How can I create a field with the values field1 and field2?