diff --git a/specs/elasticsearch/elasticsearch-cluster-health.yml b/specs/elasticsearch/elasticsearch-cluster-health.yml new file mode 100644 index 00000000..02b5812d --- /dev/null +++ b/specs/elasticsearch/elasticsearch-cluster-health.yml @@ -0,0 +1,48 @@ +--- + # The name of the workflow. + name: Show the Elasticsearch cluster health + # The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`. + command: |- + curl -XGET '{{schema}}://{{host}}:{{port}}/_cat/health?v={{verbose}}' + # Any tags that the workflow should be categorized with. + tags: + - elasticsearch + - curl + # A description of the workflow. + description: Inspect the Elasticsearch cluster health + # List of arguments within the command. + arguments: + # Name of the argument within the command. This must exactly match the name of the argument + # within the command (without the curly braces). + - name: schema + # The description of the argument. + description: The url schema + # The default value for the argument. + default_value: http + # within the command (without the curly braces). + - name: host + # The description of the argument. + description: The url hostname + # The default value for the argument. + default_value: localhost + # within the command (without the curly braces). + - name: port + # The description of the argument. + description: The url port + # The default value for the argument. + default_value: 9200 + # within the command (without the curly braces). + - name: verbose + # The description of the argument. + description: Should the output be verbose + # The default value for the argument. + default_value: true + # The source URL for where the workflow was generated from, if any. + source_url: "https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-health.html" + # The author of the workflow. + author: Olaf Klejnstrup-Jensen + # The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page. + author_url: "https://github.com/fului" + # The valid shells where this workflow should be active. If valid for all shells, this can be left empty. + # See FORMAT.md for the full list of accepted values. + shells: [] diff --git a/specs/elasticsearch/elasticsearch-count-index-documents.yml b/specs/elasticsearch/elasticsearch-count-index-documents.yml new file mode 100644 index 00000000..b3918b76 --- /dev/null +++ b/specs/elasticsearch/elasticsearch-count-index-documents.yml @@ -0,0 +1,51 @@ +--- + # The name of the workflow. + name: Count documents in an index in Elasticsearch + # The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`. + command: |- + curl -XGET '{{schema}}://{{host}}:{{port}}/_cat/count/{{index_name}}?v={{verbose}}' + # Any tags that the workflow should be categorized with. + tags: + - elasticsearch + - curl + # A description of the workflow. + description: Show the document count for an index in Elasticsearch + # List of arguments within the command. + arguments: + # Name of the argument within the command. This must exactly match the name of the argument + # within the command (without the curly braces). + - name: schema + # The description of the argument. + description: The url schema + # The default value for the argument. + default_value: http + # within the command (without the curly braces). + - name: host + # The description of the argument. + description: The url hostname + # The default value for the argument. + default_value: localhost + # within the command (without the curly braces). + - name: port + # The description of the argument. + description: The url port + # The default value for the argument. + default_value: 9200 + # within the command (without the curly braces). + - name: index_name + # The description of the argument. + description: The name of the index you want the count for + - name: verbose + # The description of the argument. + description: Should the output be verbose + # The default value for the argument. + default_value: true + # The source URL for where the workflow was generated from, if any. + source_url: "https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-count.html" + # The author of the workflow. + author: Olaf Klejnstrup-Jensen + # The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page. + author_url: "https://github.com/fului" + # The valid shells where this workflow should be active. If valid for all shells, this can be left empty. + # See FORMAT.md for the full list of accepted values. + shells: [] diff --git a/specs/elasticsearch/elasticsearch-list-indices.yml b/specs/elasticsearch/elasticsearch-list-indices.yml new file mode 100644 index 00000000..9d285683 --- /dev/null +++ b/specs/elasticsearch/elasticsearch-list-indices.yml @@ -0,0 +1,47 @@ +--- + # The name of the workflow. + name: List indices in Elasticsearch + # The corresponding command for the workflow. Any arguments should be surrounded with two curly braces. E.g `command {{arg}}`. + command: |- + curl -XGET '{{schema}}://{{host}}:{{port}}/_cat/indices?v={{verbose}}&s=index' + # Any tags that the workflow should be categorized with. + tags: + - elasticsearch + - curl + # A description of the workflow. + description: This lists indices in Elasticsearch + # List of arguments within the command. + arguments: + # Name of the argument within the command. This must exactly match the name of the argument + # within the command (without the curly braces). + - name: schema + # The description of the argument. + description: The url schema + # The default value for the argument. + default_value: http + # within the command (without the curly braces). + - name: host + # The description of the argument. + description: The url hostname + # The default value for the argument. + default_value: localhost + # within the command (without the curly braces). + - name: port + # The description of the argument. + description: The url port + # The default value for the argument. + default_value: 9200 + - name: verbose + # The description of the argument. + description: Should the output be verbose + # The default value for the argument. + default_value: true + # The source URL for where the workflow was generated from, if any. + source_url: "https://www.elastic.co/guide/en/elasticsearch/reference/current/cat-indices.html" + # The author of the workflow. + author: Olaf Klejnstrup-Jensen + # The URL of original author of the Workflow. For example, if this workflow was generated from StackOverflow, the `author_url` would be the StackOverflow author's profile page. + author_url: "https://github.com/fului" + # The valid shells where this workflow should be active. If valid for all shells, this can be left empty. + # See FORMAT.md for the full list of accepted values. + shells: []