This PR introduces functionality to fetch host details from the CrowdStrike API via our connector when no corresponding host document is found in Elasticsearch. This ensures we have a fallback mechanism to retrieve essential data directly from CrowdStrike, improving data availability and resilience in edge cases.
Key Changes
New Method: Implemented functionality to query the CrowdStrike API through the connector for host details when Elasticsearch lacks the necessary document.
Integration: Incorporated the new fallback mechanism into the getAgentStatuses method.
Error Handling: Enhanced logging and error management to handle scenarios where neither Elasticsearch nor the CrowdStrike API returns host details.
Why this is needed?
This change addresses gaps in host data when Elasticsearch lacks the necessary documents. By adding the CrowdStrike API as a fallback, we ensure seamless retrieval of agent status information, enhancing the reliability and accuracy of our system.
Summary
This PR introduces functionality to fetch host details from the CrowdStrike API via our connector when no corresponding host document is found in Elasticsearch. This ensures we have a fallback mechanism to retrieve essential data directly from CrowdStrike, improving data availability and resilience in edge cases.
Key Changes
getAgentStatuses
method.Why this is needed?
This change addresses gaps in host data when Elasticsearch lacks the necessary documents. By adding the CrowdStrike API as a fallback, we ensure seamless retrieval of agent status information, enhancing the reliability and accuracy of our system.