How can I access the name of the Cribl Group in a pipeline? I'd like to use that value in a field
For Worker Group?Try looking at the __<fields> ---might be one there when you do a capture. But it's a good question...might have to comb the docs for that one. I just don't know.
I couldn't find anything in the __* fields. No luck in the docs either - I guess I may be forced to set a variable
myField = C.env.CRIBL_GROUP_ID
C.env is rich AF!
Thank You - works like a charm!! Is there a list of all the Cribl-related environment variables available?
no, because they all change depending on env, but can easily test it with setting a field `foo` to `C.env` and you'll see what's available in your system
…then access each one as `C.env.<name>`
Got it - thanks again!!
Reply
Login to the community
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.