---
name: "elastalert-create-index"
section: "1"
platform: "linux"
package: "elastalert"
version: "0.2.4-3"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/elastalert-create-index"
---

# elastalert-create-index(1)

elastalert-create-index

## NAME

elastalert-create-index - elastalert-create-index

## DESCRIPTION

usage: elastalert-create-index \[-h\] \[--host HOST\] \[--port PORT\]

- \[--username USERNAME\] \[--password PASSWORD\]

  \[--url-prefix URL\_PREFIX\] \[--no-auth\] \[--ssl\] \[--no-ssl\] \[--verify-certs\] \[--no-verify-certs\] \[--index INDEX\] \[--alias ALIAS\] \[--old-index OLD\_INDEX\] \[--send\_get\_body\_as SEND\_GET\_BODY\_AS\] \[--boto-profile PROFILE\] \[--profile PROFILE\] \[--aws-region AWS\_REGION\] \[--timeout TIMEOUT\] \[--config CONFIG\] \[--recreate RECREATE\]

### options:

- **-h**, **--help**

  show this help message and exit

- **--host** HOST

  Elasticsearch host

- **--port** PORT

  Elasticsearch port

- **--username** USERNAME

  Elasticsearch username

- **--password** PASSWORD

  Elasticsearch password

- **--url-prefix** URL\_PREFIX

  Elasticsearch URL prefix

- **--no-auth**

  Suppress prompt for basic auth

- **--ssl**

  Use TLS

- **--no-ssl**

  Do not use TLS

- **--verify-certs**

  Verify TLS certificates

- **--no-verify-certs**

  Do not verify TLS certificates

- **--index** INDEX

  Index name to create

- **--alias** ALIAS

  Alias name to create

- **--old-index** OLD\_INDEX

  Old index name to copy

- **--send\_get\_body\_as** SEND\_GET\_BODY\_AS

  Method for querying Elasticsearch - POST, GET or source

- **--boto-profile** PROFILE

  DEPRECATED: (use **--profile**) Boto profile to use for signing requests

- **--profile** PROFILE

  AWS profile to use for signing requests. Optionally use the AWS\_DEFAULT\_PROFILE environment variable

- **--aws-region** AWS\_REGION

  AWS Region to use for signing requests. Optionally use the AWS\_DEFAULT\_REGION environment variable

- **--timeout** TIMEOUT

  Elasticsearch request timeout

- **--config** CONFIG

  Global config file (default: config.yaml)

- **--recreate** RECREATE

  Force re-creation of the index (this will cause data loss).
