/druid/indexer/v1/task/<task>/log endpoint

We would like to show parts of the indexer log in real-time on a web page, while the indexer task is running. We found the /druid/indexer/v1/task//log?offset= endpoint somehow by accident - it appears to be undocumented. I have some questions:

  • Is it a bad idea to use this endpoint? Since it’s undocumented might it disappear in some future druid version?
  • Does anyone have experience with using this to periodically poll and capture the log for a task? Any code to share?

You can look at the “new” coordinator console code. It uses that endpoint to show task logs in the browser.