{"id":15048260,"url":"https://github.com/github/elasticsearch-srv-discovery","last_synced_at":"2025-10-04T08:31:04.215Z","repository":{"id":31272260,"uuid":"34834076","full_name":"github/elasticsearch-srv-discovery","owner":"github","description":"Elasticsearch discovery with SRV records","archived":true,"fork":false,"pushed_at":"2016-10-15T19:22:08.000Z","size":56,"stargazers_count":34,"open_issues_count":5,"forks_count":33,"subscribers_count":276,"default_branch":"master","last_synced_at":"2024-09-30T00:20:39.544Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/github.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-30T04:26:54.000Z","updated_at":"2024-07-31T03:20:19.000Z","dependencies_parsed_at":"2022-09-09T04:50:11.184Z","dependency_job_id":null,"html_url":"https://github.com/github/elasticsearch-srv-discovery","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Felasticsearch-srv-discovery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Felasticsearch-srv-discovery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Felasticsearch-srv-discovery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/github%2Felasticsearch-srv-discovery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/github","download_url":"https://codeload.github.com/github/elasticsearch-srv-discovery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235232437,"owners_count":18957056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-09-24T21:09:54.135Z","updated_at":"2025-10-04T08:31:03.911Z","avatar_url":"https://github.com/github.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"SRV Discovery Plugin for Elasticsearch\n======================================\n\nUse SRV records for Elasticsearch discovery, like the ones\n[Consul](https://consul.io) provides.\n\nLooking for a plugin that uses the Consul API directly? Check out\n[lithiumtech/elasticsearch-consul-discovery](https://github.com/lithiumtech/elasticsearch-consul-discovery).\n\n## Installation\n\nBased on the version of Elasticsearch that you're running, pick the compatible plugin version (e.g. `1.5.1`), then run this command:\n\n```bash\nbin/plugin install srv-discovery --url https://github.com/github/elasticsearch-srv-discovery/releases/download/1.5.1/elasticsearch-srv-discovery-1.5.1.zip\n```\n\nVerify that the plugin was installed:\n\n```\n$ bin/plugin -l\nInstalled plugins:\n    - srv-discovery\n\n$ curl localhost:9200/_cat/plugins?v\nname  component             version type url\nPluto srv-discovery         ...     j\n```\n\n## Compatibility\n\nThe SRV Discovery plugin is known to be compatible with these versions of Elasticsearch:\n\nElasticsearch|SRV Discovery plugin\n---|---\n1.7.3|1.5.1\n1.7.2|1.5.1\n1.7.1|1.5.1\n1.7.0|1.5.1\n1.6.2|1.5.1\n1.6.1|1.5.1\n1.6.0|1.5.1\n1.5.2|1.5.1\n1.5.1|1.5.1\n1.5.0|1.5.1\n\n## Configuration\n\nKey|Example|Description\n---|---|---\n`discovery.srv.query`|`elasticsearch-9300.service.consul`|The query string to use when querying for SRV records.\n`discovery.srv.servers`|`127.0.0.1:8600`|DNS Servers to contact. Can be an array or a comma-delimited string. Port numbers are optional.\n`discovery.srv.protocol`|`tcp`|Which protocol to use. Options are `tcp` and `udp`. Default is `tcp`.\n\nNote: Consul will return maximum 3 records when using UDP queries. All records are returned when using TCP.\n\n### Simple Example\n```yaml\ndiscovery:\n  type: srv\n  srv:\n    query: elasticsearch-9300.service.consul\n```\n\n### Complex Example\n```yaml\ndiscovery:\n  type: srv\n  srv:\n    query: elasticsearch-9300.service.consul\n    protocol: tcp\n    servers:\n      - 127.0.0.1:8600\n      - 192.168.1.1\n```\n\n## Development\n\nTo see the effects of a change on a real Elasticsearch instance, build the package and install it like so:\n\n```bash\nplugin=\"/Users/you/elasticsearch-\u003cversion\u003e/bin/plugin\"\nname=\"srv-discovery\"\nzip=\"file:///Users/you/elasticsearch-srv-discovery/build/distributions/elasticsearch-srv-discovery-\u003cversion\u003e.zip\"\n\ngradle distZip || exit 1\n$plugin remove $name\n$plugin install $name --url $zip\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Felasticsearch-srv-discovery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgithub%2Felasticsearch-srv-discovery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgithub%2Felasticsearch-srv-discovery/lists"}