logstash-filter-java_filter_example icon indicating copy to clipboard operation
logstash-filter-java_filter_example copied to clipboard

How to use field values

Open cpmoore opened this issue 5 years ago • 1 comments

Is there an example of how to use message fields in configuration

For instance

filter {
  source => "%{[nested][value]}"
}

How do i convert [nested][value] to the value of the fields from the message?

cpmoore avatar Apr 15 '20 16:04 cpmoore

See here: logstash-core/src/main/java/co/elastic/logstash/api/Event.java

event.getField("[nested][value]")

gauchj avatar Mar 06 '25 15:03 gauchj