404 Error when querying the API
Best Answer
-
The Cribl API reference that’s baked into the
product, which is statically generated, isn’t aware that you’re in a
distributed environment - so the endpoints don’t reflect that.Based on your screenshot, this was the endpoint:
<BASE_URL>**/api/v1/system/status/outputs**
Whereas, in a Distributed Environment it would be:<BASE_URL>**/api/v1/m/<WORKER_GROUP_NAME>/system/outputs**
- Where you would replace the <WORKER_GROUP_NAME> with the name of the Worker Group
- http://192.168.1.147:9000/api/v1/m/default/system/outputs
1 - Where you would replace the <WORKER_GROUP_NAME> with the name of the Worker Group
Answers
-
The Cribl API reference that’s baked into the
product, which is statically generated, isn’t aware that you’re in a
distributed environment - so the endpoints don’t reflect that.Based on your screenshot, this was the endpoint:
<BASE_URL>**/api/v1/system/status/outputs**
Whereas, in a Distributed Environment it would be:<BASE_URL>**/api/v1/m/<WORKER_GROUP_NAME>/system/outputs**
- Where you would replace the <WORKER_GROUP_NAME> with the name of the Worker Group
- http://192.168.1.147:9000/api/v1/m/default/system/outputs
1 - Where you would replace the <WORKER_GROUP_NAME> with the name of the Worker Group