Customers may need to identify which specific Log-Cache VM or node is responsible for a given source_id in a Tanzu Application Service (TAS) environment. This is often required for troubleshooting high CPU utilization, memory pressure, or investigating log ingestion issues at the node level.
Log-Cache uses deterministic routing based on a hash of the source_id. While tools like cf log-meta provide cluster-level visibility, they do not natively expose the specific node mapping for an individual source.
To identify if a specific source_id resides on a particular Log-Cache node, you can query the local metadata API on each VM.
SSH into a Log-Cache VM: Use BOSH to access one of the Log-Cache instances:
Query the Local Metadata API: Run the following command to retrieve only the metadata stored locally on that specific node:
Verify the Mapping: Review the output for the target source_id. If the ID is present in the results, that specific node is responsible for handling its logs. If not, repeat the process on other Log-Cache nodes in the cluster until the source is located.