Skip to content

Conversation

@khushijain21
Copy link
Contributor

@khushijain21 khushijain21 commented Jan 6, 2025

Relates #4595

Adds estools from elastic-agent to reuse its methods in beats (for E2E testing)

It also adds a new method to query all documents in a given Index. Check GetAllLogsForIndexWithContext

@khushijain21 khushijain21 requested a review from a team as a code owner January 6, 2025 13:16
@khushijain21 khushijain21 requested review from faec and rdner and removed request for a team January 6, 2025 13:16
}

// GetAllLogsForIndexWithContext returns all logs for a given index
func GetAllLogsForIndexWithContext(ctx context.Context, client elastictransport.Interface, index string) (Documents, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a new method introduced here

@elasticmachine
Copy link
Collaborator

💚 Build Succeeded

History

@khushijain21 khushijain21 merged commit a3b3db0 into elastic:main Jan 7, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants