Sha256: b33c117c475167cb96a8dfb804c31d8fb2cefe2e7be674a6b72a9f3aab3e3f26

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

# Ej

elasticsearch command line utility

required ruby version >= 2.0

![ej4.gif](https://qiita-image-store.s3.amazonaws.com/0/26670/116a381c-98f6-aa72-fbd9-ddc4b179b744.gif)

## Installation

Add this line to your application's Gemfile:

    gem 'ej'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ej


## Usage

### simple search
```bash
ej -s
```

### other host(default host is localhost)
```bash
ej -s -h other_host:9201
```

### query search and index
```bash
ej -s "ip_address: 127.0.0.1" -i logstash-2014.07.01
```

### index list
```bash
ej -l -h other_host
```

### count
```bash
ej -c "log_date: 2014-01-15"
```

### facet
```bash
ej -f session_id -q "log_date: 2014-01-15"
```

### mapping
```bash
ej -m
```

### delete index
```bash
ej delete -i logstash-2014.07.01 -h other_host
```


## Contributing

1. Fork it ( http://github.com/toyama0919/ej/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ej-0.1.4 README.md
ej-0.1.3 README.md
ej-0.1.2 README.md
ej-0.1.1 README.md
ej-0.1.0 README.md