https://github.com/avalarin/elasticsearch-cli
Command line interface for ElasticSearch
https://github.com/avalarin/elasticsearch-cli
cli console elastic elasticsearch kibana
Last synced: 3 months ago
JSON representation
Command line interface for ElasticSearch
- Host: GitHub
- URL: https://github.com/avalarin/elasticsearch-cli
- Owner: avalarin
- License: mit
- Created: 2018-03-25T12:40:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T08:41:09.000Z (almost 5 years ago)
- Last Synced: 2024-08-03T01:39:05.271Z (7 months ago)
- Topics: cli, console, elastic, elasticsearch, kibana
- Language: Rust
- Size: 142 KB
- Stars: 73
- Watchers: 6
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Elasticsearch CLI
[](https://travis-ci.org/avalarin/elasticsearch-cli)
[](https://coveralls.io/github/avalarin/elasticsearch-cli?branch=refactor-config)Command-line interface for ElasticSearch
## Installing
### MacOS
TBD
### Linux
TBD
### From archive
* Download the latest release from the [releases page](https://github.com/avalarin/elasticsearch-cli/releases/latest)
* Unpack it to the executable files directory (e.g. /usr/local/bin)
* Make the elastic-cli binary executable `chmod +x /usr/local/bin/elastic-cli`## Configuration
Configuration file stored in your home directory - `~/.elastic-cli`. Empty configuration file will be created at the first lanuch.
You need to register some elasticsearch server and set is as default:
```
elastic-cli config add server local --address http://localhost:9200 --index '*'
elastic-cli config use server local
```## Usage
Examples:
```
elastic-cli search -q 'level: Error'
elastic-cli search -q 'level: Error' -o json
elastic-cli search -q 'level: Error' -o '{level} {message}'
elastic-cli search -q 'level: Error' -f 'level,message'
```For more documentation use help:
```
elastic-cli help
elastic-cli search --help
elastic-cli config --help
```