knes1 / elktail

Command line utility to query, search and tail EL (elasticsearch, logstash) logs
MIT License
197 stars 66 forks source link

Accept a list of ElasticSearch URLs #5

Open boncheff opened 8 years ago

boncheff commented 8 years ago

The --url option should accept a list of URLs in case ElasticSearch is runing in a cluster

./elktail --url "s1:9200,s2:9200" -n "500" -t "timestamp" -f "%timestamp : %service : %message :" service:myservice.*

ERROR: Could not connect Elasticsearch client to http://s1:9200,s2:9200: no Elasticsearch node available.

knes1 commented 8 years ago

Verified that elasticsearch client library olivere/elastic.v2 easily supports URL lists so this should not be problematic to add with minor changes to configuration options and options parsing. I'm starting work on this.

boncheff commented 8 years ago

Sounds good, thank you