Skip to main content
Solved

Pipeline Worker Node Name Undefined When Using __cribl_worker Field

  • March 6, 2026
  • 4 replies
  • 4 views

This message originated from Cribl Community Slack.
Click here to view the original link.

Hi All. I am creating a pipeline at worker group level (I have 2 worker nodes in the group) , in which I want to amend worker node name in _raw file. I tried using __cribl_worker field but I am getting value as undefined. Can someone help in getting the worker node name to amend to my _raw field

Best answer by Stefan Laschitzki

You get the hostname if the host that is executing that statement. The preview in the Leader UI will be executed by the Leader. Once you deploy this to the worker nodes, you'll get the workers hostname. You can verify that by teleporting and running the command there

4 replies


Thanks Stefen. I have tried using this property "C.os.hostname()" but I am getting Leader node name not the worker name

You get the hostname if the host that is executing that statement. The preview in the Leader UI will be executed by the Leader. Once you deploy this to the worker nodes, you'll get the workers hostname. You can verify that by teleporting and running the command there

It works like charm thanks a lot