How can I access the name of the Cribl Group in a pipeline?
How can I access the name of the Cribl Group in a pipeline? I'd like to use that value in a field
Best Answer
-
C.env is rich AF!
0
Answers
-
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.
0 -
I couldn't find anything in the __* fields. No luck in the docs either - I guess I may be forced to set a variable
0 -
myField = C.env.CRIBL_GROUP_ID :slightly_smiling_face:
0 -
C.env is rich AF!
0 -
Thank You - works like a charm!! Is there a list of all the Cribl-related environment variables available?
0 -
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
0 -
…then access each one as `C.env.<name>`
0 -
Got it - thanks again!!
0 -
0