IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

EDR: How to get raw process documents via Curl (Clustered)

EDR: How to get raw process documents via Curl (Clustered)

Environment

  • EDR Server: 6.x and above (Formerly CB Response)
  • Clustered server environment

Objective

Query a clustered EDR server environment for raw process document information.

Resolution

Please see Related Content if your environment is a standalone server

  1. Log into the EDR web console.
  2. Perform a process search and click a resulting process to bring you to the Process Analysis page.
  3. In the Process Analysis page grab the Unique ID (highlighted in red) from the browser URL
    https://<server>/#/analyze/00000007-0000-24c8-01d4-6cab54141c72/1540927207635?cb.legacy_5x_mode=false
  4. Log into the master server via ssh/terminal and run the following command, replacing the <uniqueid> and <Node_*_IP> with the IP/FQDN's of the minion nodes depending on how many are in your environment.
    curl 'http://localhost:8080/solr/reader/select?shards=<Node_1_IP>:8080/solr/reader,<Node_2_IP>:8080/solr/reader&q=id:<uniqueid>*&rows=0'
  5. View the "numFound" and enter a value greater than in the &rows= section of the next command.
    response":{"numFound":29,"start":0,"maxScore":1.0,"docs":[
  6. Run the following command, in the example numFound came back as 29, so 40 is used to give a buffer as the rows=
    curl 'http://localhost:8080/solr/reader/select?shards=<Node_1_IP>:8080/solr/reader,<Node_2_IP>:8080/solr/reader&q=id:<uniqueid>*&wt=json&indent=true&rows=40&debug=track&sort=last_server_update%20asc' >> <uniqueid>.json && /usr/share/cb/cbpost <uniqueid>.json

Additional Notes

  • Common Errors:
    • "The requested resource is not available": Curl command was run on the incorrect server/node.
    • "numFound=0": Incorrect or missing unique id,  incorrect server/node or md5 hash is lowercase.
  • Process documents resulting from this process may provide limited results. Alternative method: 

Related Content


Labels (1)
Tags (2)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎11-27-2018
Views:
1855
Contributors