Parameter | Details |
---|---|
indexRoot | The root name of the index to hit, the format is expected to be fmt.Sprintf("%s-%s", index_root, d.Format("2006.01.02")) |
keyString | Creates groups (like tagsets) and can also filter those groups. It is the format of "field:regex,field:regex..." . The :regex can be ommited. |
filterString | An Elastic regexp query that can be applied to any field. It is in the same format as the keystring argument. |
field | The field in ElasticSearch to perform the operation on. Must be a numeric field. |
rStat | Can be one of avg , min , max , sum , sum_of_squares , variance , std_deviation |
bucketDuration | The same format is an opentsdb duration, and is the size of buckets returned (i.e. counts for every 10 minutes) |
startDuration | set the time window from now - see the OpenTSDB q() function for more details. |
endDuration | set the time window from now - see the OpenTSDB q() function for more details. |
The LogStash query functions are deprecated, and only for use with v1.x of ElasticSearch. If you are running v2 or above of ElasticSearch, then you should refer to the Elastic Query functions.