We have updated our Terms of Service, Code of Conduct, and Addendum.

Find which worker node processed an event

Jay
Jay Posts: 1

Hi,

Is there a way to find out which worker node processed an event, does it inject a field or can we configure it?

Reason is we have some issues and this could narrow it down to a particular worker node.

Cheers,

Jay

Tagged:

Best Answer

  • Henri Bülte
    Henri Bülte Posts: 3
    Answer ✓

    Hi,

    this (C.os.hostname()) worked for me when I checked that my load balancing was working as intended:

    https://docs.cribl.io/stream/expressions-other#coshostname

    I simply inserted this into a pipeline with a corresponding eval function and generated the field "cribl_worker_flag" and I could see the moment the other Worker Node got the data and took over. This approach should suit your usecase as well.

Answers

  • Henri Bülte
    Henri Bülte Posts: 3
    Answer ✓

    Hi,

    this (C.os.hostname()) worked for me when I checked that my load balancing was working as intended:

    https://docs.cribl.io/stream/expressions-other#coshostname

    I simply inserted this into a pipeline with a corresponding eval function and generated the field "cribl_worker_flag" and I could see the moment the other Worker Node got the data and took over. This approach should suit your usecase as well.