Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

5.x Query Documents Via Curl (SSH/Terminal)

5.x Query Documents Via Curl (SSH/Terminal)


Cb Response 5.x


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) 


Querying for a Process Document, Binary Document, and Common Errors

Process Document

  1. Gather Partial Process ID from UI
    1. Load Process Analysis page in the UI
    2. Pull the partial ID from the URL

      Note: this is not the complete unique_id or id field that is stored in Solr

    3. Load Sensor Details page by selecting the link on the Process Analysis page:
      1. Pre 5.2
      2. 5.2
  2. Collect information from the Sensor Details Page
    1. Determine the node to SSH into. The Node Address and Node Hostname will tell you which system to connect.
    2. Determine the correct shard ID
  3. Construct the SOLR Query and Execute the Command
    1. Use the IP or Domain Name from the node address (example and connect to the server via SSH.
    2. 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.
      1. Windows
        curl "*&wt=json&indent=true"
        curl "*&wt=json&indent=true"
      2. MacOS/Linux
        curl ""
        curl ""

        Note: This is a URL Encoded Command. It includes “%22” (ASCII for quotes ") which are necessary when the number is negative

Binary Document

  1. Collect binary md5 from UI:
  2. SSH into the master
  3. Query cbmodules core for the module metadata

    curl ''

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.

Labels (1)
Was this article helpful? Yes No
No ratings
Article Information
Creation Date: