Skip to main content
Solved

How can I access the name of the Cribl Group in a pipeline?

  • March 11, 2025
  • 10 replies
  • 68 views

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 by dritan

C.env is rich AF!

10 replies

  • Employee
  • March 11, 2025

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.


  • Author
  • Known Participant
  • March 11, 2025

I couldn't find anything in the __* fields. No luck in the docs either - I guess I may be forced to set a variable


  • Employee
  • March 11, 2025

myField = C.env.CRIBL_GROUP_ID :slightly_smiling_face:


  • Employee
  • March 11, 2025

  • Employee
  • Answer
  • March 11, 2025

C.env is rich AF!


  • Author
  • Known Participant
  • March 11, 2025

Thank You - works like a charm!! Is there a list of all the Cribl-related environment variables available?


  • Employee
  • March 11, 2025

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


  • Employee
  • March 11, 2025

…then access each one as `C.env.<name>`


  • Author
  • Known Participant
  • March 11, 2025

Got it - thanks again!!


  • Employee
  • March 11, 2025

:+1: