- Reset search offset when drilling into the histogram

This commit is contained in:
Jordan Sissel 2011-02-13 02:58:00 -08:00
parent d0e08d44e7
commit 19ce814677

View file

@ -92,6 +92,10 @@
start = logstash.ms_to_iso8601(item.datapoint[0]);
end = logstash.ms_to_iso8601(item.datapoint[0] + 3600000);
/* Clicking on the graph means a new search, means
* we probably don't want to keep the old offset since
* the search results will change. */
logstash.params.offset = 0;
logstash.appendquery("@timestamp:[" + start + " TO " + end + "]");
}
});