log: cleanup es client options
Signed-off-by: huanggze <loganhuang@yunify.com>
This commit is contained in:
@@ -73,12 +73,10 @@ func NewLoggingClient(options *ElasticSearchOptions) (*ElasticSearchClient, erro
|
||||
version = options.Version
|
||||
}
|
||||
|
||||
if options.LogstashFormat {
|
||||
if options.LogstashPrefix != "" {
|
||||
index = options.LogstashPrefix
|
||||
} else {
|
||||
index = "logstash"
|
||||
}
|
||||
if options.IndexPrefix != "" {
|
||||
index = options.IndexPrefix
|
||||
} else {
|
||||
index = "logstash"
|
||||
}
|
||||
|
||||
switch version {
|
||||
|
||||
Reference in New Issue
Block a user