Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide easy interface to search based on index patterns #741

Closed
tomsommer opened this issue Mar 20, 2018 · 3 comments
Closed

Provide easy interface to search based on index patterns #741

tomsommer opened this issue Mar 20, 2018 · 3 comments

Comments

@tomsommer
Copy link

Like Kibana, offer a way to handle index patterns such as logstash-YYYY.MM.DD etc.: https://www.elastic.co/guide/en/kibana/current/index-patterns.html

This would make it a lot easier to search logstash indexes that are split by dates, based on a given timestamp and pattern, the library would deduct which indexes it should search (Like Kibana does)

@marcing
Copy link

marcing commented Mar 22, 2018

Perhaps passing wildcard in 'index' param would be enough?

		$params = [
			'index' => 'logstash-_*'
			'body' => [
				'query' => ...
			],
			'client' => ...
		];

Cheers

@tomsommer
Copy link
Author

That would work, but it would search all indexes - even those outside of a given time-period.

@ezimuel
Copy link
Contributor

ezimuel commented Aug 30, 2019

@tomsommer you can use also Index patterns feature available from Elasticsearch 6.5 or regular expressions using query, see here.

@ezimuel ezimuel closed this as completed Aug 30, 2019
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

No branches or pull requests

3 participants