Skip to content

Create a Nomad job to configure Elasticsearch #106

@guangie88

Description

@guangie88

We still have to configure Elasticsearch via the HTTP API, see https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createupdatedomains.html#es-createdomain-configure-slow-logs.

We need to configure:

  • Slow index logs
  • Slow search logs
  • Rolling indices
# https://www.elastic.co/guide/en/elasticsearch/reference/5.5/index-modules-slowlog.html
# This is PER INDEX
# We should probably do an index template...?
# curl -XPUT  \
#  https://vpc-tf-l-xxx.ap-southeast-1.es.amazonaws.com/syslog-*/_settings \
#  -H 'Content-Type: application/json' \
#  --data '{ "index.indexing.slowlog.threshold.index.warn": "10s", "index.indexing.slowlog.threshold.index.info": "5s", "index.indexing.slowlog.threshold.index.debug": "2s", "index.indexing.slowlog.threshold.index.trace": "500ms", "index.indexing.slowlog.level": "info", "index.indexing.slowlog.source": "1000"}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    D-EasyDifficult EasyP-MediumPriority MediumenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions