Skip to content

Instantly share code, notes, and snippets.

@joshuar
joshuar / queries.md
Created October 16, 2017 16:58
Quick Document Counts in Elasticsearch

Count number of docs indexed in certain interval (e.g., last 15 min)

GET /logstash-<DATE>/_search?filter_path=hits.total
{
  "query": {
    "bool": {
      "filter": [
            {
              "range": {
@joshuar
joshuar / Dockerfile
Created November 15, 2017 22:16
Dockerfile for installing JDK development tooling (jmap, etc.) on top of the official Elastic Elasticsearch Docker image
FROM docker.elastic.co/elasticsearch/elasticsearch:5.6.4
USER root
RUN sed -i '/^exclude/d' /etc/yum.conf && yum update -y && yum install -y java-1.8.0-openjdk-devel
USER elasticsearch