This guide explains how to configure your Distributed Computing Platform (DCP) workers to send logs to Better Stack using syslog-ng. This allows you to centralize log management for troubleshooting and analysis.
To begin, you need a Better Stack source configured for syslog-ng.
DCP Worker - MyProjectYou will now be on the Data Ingestion page for your new source. Copy the Ingesting host and Source token, as you'll need them for the next step.
Now, configure your DCP worker to send logs to the Better Stack source you just created. This involves setting the syslog URL for your worker.
Choose the method that applies to your DCP worker setup:
If you are running a command-line worker, use the --syslog option:
If you use dcp-config files for configuration, edit the worker.logging.syslog.url node.
The easiest way is to create or modify /etc/dcp/dcp-worker/dcp-config.js with the following content:
For Windows Screensaver workers, set the URL as a string value in the Windows Registry:
HKLM\Distributive\dcp-worker\dcp\config\worker\logging\syslog\url
Once your worker is configured and restarted, go to Live tail. π
This view will show your log messages in real-time as your DCP worker generates them.
You can watch our pre-recorded demos to get the hang of Logs & traces, Infrastructure monitoring, or more of what Better Stack has to offer as fast as possible.
We use cookies to authenticate users, improve the product user experience, and for personalized ads. Learn more.