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

Unclear how to search a particular ES source when multiple ES sources are configured #100

Closed
clarenceb opened this issue Dec 20, 2016 · 4 comments

Comments

@clarenceb
Copy link

On this page https://github.com/etsy/411/blob/master/docs/HowTo/NewESSource.md it describes how to add additional ES sources by editing the config.php file. However, its unclear to me how to direct a "Logstash" search to a particular ES source.

  • Will my search run against all ES sources defined?
  • Am I supposed to add something to my ESQuery line to target the particular ES source?

This might just be more of a documentation thing or perhaps I am misunderstanding how this is supposed to work?

@kiwiz
Copy link
Contributor

kiwiz commented Dec 21, 2016

Getting this to work is more difficult than necessary, see #3. I'll make it a high priority to get a better solution that doesn't involve creating a new class.

@clarenceb
Copy link
Author

Ok, thanks. Rather than storing the ES API URL in config.php, could this not just be stored in the searches table much like the URL is stored for HTTP searches? It should be (?) pretty simple to type in the ES API URL for Logstash searches (e.g. just about the query field) and store this with the search data. From the UX point-of-view, it might get repetitive after a while, where a drop-down with known ES API URLs would be more convenient.

@kiwiz
Copy link
Contributor

kiwiz commented Jan 4, 2017

This should be resolved per #4. :]

If you're feeling adventurous, you can test out the new ES search type on HEAD. I've got some odds n ends to clean up before I push out v1.2 proper.

@kiwiz
Copy link
Contributor

kiwiz commented Jan 18, 2017

Out in v1.2.0

@kiwiz kiwiz closed this as completed Jan 18, 2017
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

2 participants