All Projects → miku → Estab

miku / Estab

Licence: other
Export elasticsearch as TSV or line delimited JSON.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Estab

Office365 Management Api Elk
An API connector for the Office 365 Management API and the Elastic Stack
Stars: ✭ 13 (-64.86%)
Mutual labels:  elasticsearch
Hot Comment
Go、Gin、Elasticsearch开发的云音乐歌手、歌曲、评论搜索API,线上演示地址在右边:
Stars: ✭ 28 (-24.32%)
Mutual labels:  elasticsearch
Linux Tutorial
《Java 程序员眼中的 Linux》
Stars: ✭ 7,757 (+20864.86%)
Mutual labels:  elasticsearch
Apm Server
APM Server
Stars: ✭ 878 (+2272.97%)
Mutual labels:  elasticsearch
Movie Finder
오픈소스 검색엔진인 Elasticsearch 를 활용하여 '영화'를 검색을 하는 Vue.js 프로젝트
Stars: ✭ 21 (-43.24%)
Mutual labels:  elasticsearch
Elastic data
Elasticsearch datasets ready for bulk loading
Stars: ✭ 30 (-18.92%)
Mutual labels:  elasticsearch
Moqui Elasticsearch
Moqui Tool Component for ElasticSearch useful for scalable faceted text search, and analytics and reporting using aggregations and other great features
Stars: ✭ 10 (-72.97%)
Mutual labels:  elasticsearch
Openwisp Monitoring
Network monitoring system written in Python and Django, designed to be extensible, programmable, scalable and easy to use by end users: once the system is configured, monitoring checks, alerts and metric collection happens automatically.
Stars: ✭ 37 (+0%)
Mutual labels:  elasticsearch
Elasticsearch Java Rest
Elasticsearch Java Rest 手册
Stars: ✭ 27 (-27.03%)
Mutual labels:  elasticsearch
3d kibana charts vis
3D Kibana Charts: Pie Chart, Bars Chart, Bubbles Chart
Stars: ✭ 34 (-8.11%)
Mutual labels:  elasticsearch
Flexsearch
Next-Generation full text search library for Browser and Node.js
Stars: ✭ 8,108 (+21813.51%)
Mutual labels:  elasticsearch
Laravel Scout Elastic
Elastic Driver for Laravel Scout
Stars: ✭ 886 (+2294.59%)
Mutual labels:  elasticsearch
Elastic Graph Recommender
Building recommenders with Elastic Graph!
Stars: ✭ 33 (-10.81%)
Mutual labels:  elasticsearch
Eliot
Eliot: the logging system that tells you *why* it happened
Stars: ✭ 874 (+2262.16%)
Mutual labels:  elasticsearch
Diskover
File system crawler, disk space usage, file search engine and file system analytics powered by Elasticsearch
Stars: ✭ 977 (+2540.54%)
Mutual labels:  elasticsearch
Python Kafka Elasticsearch
Simple learning project pushing CSV data into Kafka then indexing the data in ElasticSearch
Stars: ✭ 11 (-70.27%)
Mutual labels:  elasticsearch
Rom Elasticsearch
Elasticsearch adapter for rom-rb
Stars: ✭ 30 (-18.92%)
Mutual labels:  elasticsearch
Real Time Stream Processing Engine
This is an example of real time stream processing using Spark Streaming, Kafka & Elasticsearch.
Stars: ✭ 37 (+0%)
Mutual labels:  elasticsearch
Elasticsplunk
A Search command to explore Elasticsearch data within Splunk.
Stars: ✭ 35 (-5.41%)
Mutual labels:  elasticsearch
News Please
news-please - an integrated web crawler and information extractor for news that just works.
Stars: ✭ 969 (+2518.92%)
Mutual labels:  elasticsearch

estab

Export elasticsearch document fields into tab separated values. estab uses the scan search type and the scroll API, which help

to retrieve large numbers of documents from Elasticsearch efficiently ...

Project Status: Inactive – The project has reached a stable, usable state but is no longer being actively developed; support/maintenance will be provided as time allows.

Note: For another command line export option, take a look at esdump, which is can be combined with tools like jq to yield similar results as estab.

Installation

$ go get github.com/miku/estab/cmd/estab

Or if your system speaks dpkg or rpm, there is a release.

Usage

$ estab -h
Usage of estab:
  -1=false: one value per line (works only with a single column in -f)
  -cpuprofile="": write cpu profile to file
  -delimiter="\t": column delimiter
  -f="_id _index": field or fields space separated
  -header=false: output header row with field names
  -host="localhost": elasticsearch host
  -indices="": indices to search (or all)
  -limit=-1: maximum number of docs to return (return all by default)
  -null="NOT_AVAILABLE": value for empty fields
  -port="9200": elasticsearch port
  -precision=0: precision for numeric output
  -query="": custom query to run
  -raw=false: stream out the raw json records
  -separator="|": separator to use for multiple field values
  -size=10000: scroll batch size
  -timeout="10m": scroll timeout
  -v=false: prints current program version
  -zero-as-null=false: treat zero length strings as null values

Example

Assuming an elasticsearch is running on localhost:9200.

$ curl -XPOST localhost:9200/test/default/ -d '{"name": "Tim", "color": "red"}'
$ curl -XPOST localhost:9200/test/default/ -d '{"name": "Alice", "color": "yellow"}'
$ curl -XPOST localhost:9200/test/default/ -d '{"name": "Brian", "color": "green"}'

$ estab -indices "test" -f "name color"
Brian   green
Tim     red
Alice   yellow

Specify multiple indices:

$ curl -XPOST localhost:9200/test2/default/ -d '{"name": "Yang", "color": "white"}'
$ curl -XPOST localhost:9200/test2/default/ -d '{"name": "Ying", "color": "black"}'

$ estab -indices "test test2" -f "name color"
Ying    black
Yang    white
Tim     red
Alice   yellow
Brian   green

Multiple values are packed into a single value:

$ curl -XPOST localhost:9200/test/default/ \
       -d '{"name": "Meltem", "color": ["green", "white"]}'

$ estab -indices "test" -f "name color"
Brian   green
Meltem  green|white
Tim     red
Alice   yellow

Missing values get a special value via -null, which defaults to NOT_AVAILABLE:

$ curl -XPOST localhost:9200/test/default/ -d '{"name": "Jin"}'

$ estab -indices "test" -f "name color"
Brian   green
Meltem  green|white
Tim     red
Alice   yellow
Jin     NOT_AVAILABLE

In 0.2.0 a -raw flag was added that will stream out the full JSON documents:

$ estab -indices test -raw
{"_index":"test","_type":"default","_id":"...BvA4z","_score":0,"_source":{...}}
{"_index":"test","_type":"default","_id":"...BvA40","_score":0,"_source":{...}}
{"_index":"test","_type":"default","_id":"...BvA41","_score":0,"_source":{...}}

This can be fed into json processors like jq:

$ estab -indices test -raw | jq --raw-output '._source.color'
red
yellow
green

In 0.2.1 a -1 flag was added:

$ estab -indices "test" -f "color" -1
green
green
white
red
yellow
NOT_AVAILABLE
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].