Version
Cb Response 5.x
Topic
How to query for process or binary solr documents from corresponding UI pages
Note: For 6.x check here: 6.x Query Documents Via Curl (SSH/Terminal)
Steps
Querying for a Process Document, Binary Document, and Common Errors
Process Document
- Gather Partial Process ID from UI
- Load Process Analysis page in the UI
- Pull the partial ID from the URL
Example:Note: this is not the complete unique_id or id field that is stored in Solr

- Load Sensor Details page by selecting the link on the Process Analysis page:
- Pre 5.2

- 5.2

- Collect information from the Sensor Details Page

- Determine the node to SSH into. The Node Address and Node Hostname will tell you which system to connect.
Example:
192.168.111.5 cb-minion-optest |
- Determine the correct shard ID
Example:
- Construct the SOLR Query and Execute the Command
- Use the IP or Domain Name from the node address (example 192.168.111.5) and connect to the server via SSH.
- Replace the SHARD with Shard Id (collected in the previous) and PARTIALUNIQUEID with the Partial Unique Id (collected in the first step) in the curl command.
- Windows
Example:
- MacOS/Linux
Example:
Note: This is a URL Encoded Command. It includes “%22” (ASCII for quotes ") which are necessary when the number is negative

Binary Document
- Collect binary md5 from UI:

- SSH into the master
- Query cbmodules core for the module metadata
Common Errors
The requested resource is not available

The incorrect server server or shard has been queried (eg shard 0 does not exist on this server) or an incorrect Shard Id is being used.
No results (numFound="0")

If you are not getting any documents returned verify you have the correct Shard Id. If the page is still accessible in the UI, the data still exists. If you are receiving a 404 error in the UI, the document has been purged or does not exist.