Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out_es: Allow Logstash_Prefix_Key with prefix #8902

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on May 31, 2024

  1. out_es: Allow Logstash_Prefix_Key with prefix

    The option Logstash_Prefix_Key should be a record accessor.
    
    There is a convenience feature that automatically prefixes a $ when the value is just a static string (since that is expected to be set as Logstash_Prefix instead).
    
    However, record accessor can contain the $ not just at the beginning. One example would be
      containers-$kubernetes['namespace_name']
    
    This patch thus makes the autodetection look for a $ in the whole value, not just the first character.
    
    Signed-off-by: Jan-Philipp Litza <[email protected]>
    jplitza authored and Jan-Philipp Litza committed May 31, 2024
    Configuration menu
    Copy the full SHA
    8348709 View commit details
    Browse the repository at this point in the history