rsyslog/tests/rscript_get_property-vg.sh
Nelson Yen af8085fc83
Add built-in function get_property() to access property vars
Provides ability to evaluate a rsyslog variable using dynamically
evaluated parameters.
  1st param is the rsyslog param, 2nd param is a key, can be an array
  index or key string.

Useful for accessing json sub-objects, where a key
needs to be evaluated at runtime. Can be used to access arrays as well.

see tests for examples

remove unnecessary escape char
2021-04-15 11:52:15 -07:00

5 lines
107 B
Bash
Executable File

#!/bin/bash
# released under ASL 2.0
export USE_VALGRIND="YES"
source ${srcdir:-.}/rscript_get_property.sh