We have an requirement to read environment variable from rule config file through dynamic key reference instead of static key reference.
However, It seems Logstash does not support reading Environment variable through dynamically rendered key i.e. in our code we need to access environment variable: IP_Source HOST IP_TYPE.
Here "Source HOST IP" is dynamically initialized field on the basis of source of log message.
Dynamic key Code: ${IP_%hostip_TYPE}
Static key Code: ${IP_10_13_204_11_TYPE}
With static key it is able to fetch but with dynamically initialized key it failed to read from environment.
Please guide on the resolution of this issue