Accessing specific fields from tree structure

I have dictionary in yaml that looks like this:

  • A001:
    • {B001: {C001: 10s, C002: 15s}}
    • {B002: {C003: 20s, C004: 25s}}

i want to access specific value, for example when i have A001,B001,C001 in my logs i want to get "10s". I tried to use translate plugin but it only return value for A001. Is there a way in logstash to use tree structure for that ? (i know i can use if, but it will not be optimal in the future)

Thanks

Any ideas?

i want to access specific value, for example when i have A001,B001,C001 in my logs i want to get "10s".

https://www.elastic.co/guide/en/logstash/current/event-dependent-configuration.html#logstash-config-field-references

Any ideas?

Jeez, have patience.