Can not access dot (eg fields in logstash

How to access dot fields in logstash.

if [] == "xyz" {
grok {
add_field => {"new_field", "pqr"}

Field "" exists and its value is "xyz" but its not going in the 'if' block

I also tried but no luck.

logstash -1.5.3


Quoting the Field References documentation:

The syntax to access a field is [fieldname]. If you are referring to a top-level field, you can omit the and simply use fieldname. To refer to a nested field, you specify the full path to that field: [top-level field][nested field].

1 Like

Thanks so much!