console2es
Version, currently master branch1 version
- master branchlatestSep 23, 2019
github.com/spinscale/console2es
A command line tool understand the kibana console format to execute requests against Elasticsearch
0 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
console2es:
github: spinscale/console2es
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.30.1- License
- MIT
- Author
- Alexander Reelsen <alexander@reelsen.net>
- Target
console2esfrom src/console2es.cr
Dependencies
This version declares no dependencies.
README
# console2es
A simple helper to take the syntax of kibana console and send requests
to Elasticsearch, without having the need of a kibana instance.
The kibana format looks like this
```
GET my-index/_search
{
"query" : { "match_all": { } }
}
# comment is ignored
GET foo/_mappings
GET bar/_settings
```
## Installation
First, make sure you have crystal installed. See the [crystal install docs](https://crystal-lang.org/docs/installation/).
Second, run `crystal build --release src/console2es.cr` and use the `console2es` binary created in the directory.
## Usage
Specify an input file and the endpoint like this
```
console2es -i my-kibana-file -h http://localhost:9200
```
See also `console2es -h`
If a command has not a good 2xx return code, the response will be written on the
console.
## Development
Most likely you found a bug in this pretty raw tool.
In that case please write a failing test in `spec/console_parser_spec.cr`, fix it
and open a pull request. Alternatively open an issue with a sample snippet of
JSON and I'll take a look at it when possible.
You can run the tests locally by running `crystal spec`.
## Contributing
1. Fork it (<https://github.com/spinscale/console2es/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 a new Pull Request
## Contributors
- [Alexander Reelsen](https://github.com/spinscale) - creator and maintainer
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Sep 23, 2019
- Crystal
0.30.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/spinscale/console2es
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 13, 2026
- Synced
- Aug 13, 2026
- Versions
- 1