All Projects â†’ pteich â†’ elastic-query-export

pteich / elastic-query-export

Licence: MIT license
🚚 Export Data from ElasticSearch to CSV/JSON using a Lucene Query (e.g. from Kibana) or a raw JSON Query string

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to elastic-query-export

Es2csv
Export from an Elasticsearch into a CSV file
Stars: ✭ 465 (+730.36%)
Mutual labels:  export, kibana, csv
Pyetl
python ETL framework
Stars: ✭ 33 (-41.07%)
Mutual labels:  export, csv
Ethereum Etl
Python scripts for ETL (extract, transform and load) jobs for Ethereum blocks, transactions, ERC20 / ERC721 tokens, transfers, receipts, logs, contracts, internal transactions. Data is available in Google BigQuery https://goo.gl/oY5BCQ
Stars: ✭ 956 (+1607.14%)
Mutual labels:  export, csv
Spreadsheet architect
Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets super easily from ActiveRecord relations, plain Ruby objects, or tabular data.
Stars: ✭ 1,160 (+1971.43%)
Mutual labels:  export, csv
Simple Excel
Read and write simple Excel and CSV files
Stars: ✭ 502 (+796.43%)
Mutual labels:  export, csv
Laracsv
A Laravel package to easily generate CSV files from Eloquent model
Stars: ✭ 583 (+941.07%)
Mutual labels:  export, csv
Excellentexport
Javascript export to Excel
Stars: ✭ 1,018 (+1717.86%)
Mutual labels:  export, csv
Csvkeychain
Import/export between Apple Keychain.app and plain CSV file.
Stars: ✭ 281 (+401.79%)
Mutual labels:  export, csv
Couchimport
CouchDB import tool to allow data to be bulk inserted
Stars: ✭ 125 (+123.21%)
Mutual labels:  export, csv
Criterion
Microbenchmarking for Modern C++
Stars: ✭ 140 (+150%)
Mutual labels:  export, csv
Sonar Cnes Report
Generates analysis reports from SonarQube web API.
Stars: ✭ 145 (+158.93%)
Mutual labels:  export, csv
Jsonexport
{} → 📄 it's easy to convert JSON to CSV
Stars: ✭ 208 (+271.43%)
Mutual labels:  export, csv
Exporter
Lightweight Exporter library
Stars: ✭ 384 (+585.71%)
Mutual labels:  export, csv
Tableexport
The simple, easy-to-implement library to export HTML tables to xlsx, xls, csv, and txt files.
Stars: ✭ 781 (+1294.64%)
Mutual labels:  export, csv
Exporttools.bundle
Export tools for Plex
Stars: ✭ 294 (+425%)
Mutual labels:  export, csv
Ether sql
A python library to push ethereum blockchain data into an sql database.
Stars: ✭ 41 (-26.79%)
Mutual labels:  export, csv
php-csv-exporter
A fast and tiny PHP library to export data to CSV based on Generator. Export millions of data seamlessly without memory exception.
Stars: ✭ 15 (-73.21%)
Mutual labels:  export, csv
sheet2dict
Simple XLSX and CSV to dictionary converter
Stars: ✭ 206 (+267.86%)
Mutual labels:  export, csv
Csv Grid
Yii2 extension for CSV export
Stars: ✭ 83 (+48.21%)
Mutual labels:  export, csv
Csvreader
csvreader library / gem - read tabular data in the comma-separated values (csv) format the right way (uses best practices out-of-the-box with zero-configuration)
Stars: ✭ 169 (+201.79%)
Mutual labels:  export, csv

elastic-query-export

Export Data from ElasticSearch to CSV by Raw or Lucene Query (e.g. from Kibana). Works with ElasticSearch 6+ (OpenSearch works too) and makes use of ElasticSearch's Scroll API and Go's concurrency possibilities to work as fast as possible.

Install

Download a pre-compiled binary for your operating system from here: https://github.com/pteich/elastic-query-export/releases You need just this binary. It works on OSX (Darwin), Linux and Windows.

Usage

es-query-export -c "http://localhost:9200" -i "logstash-*" --start="2019-04-04T12:15:00" --fields="RemoteHost,RequestTime,Timestamp,RequestUri,RequestProtocol,Agent" -q "RequestUri:*export*"

CLI Options

Flag Default
-h --help show help
-v --version show version
-c --connect http://localhost:9200 URI to ElasticSearch instance
-i --index logs-* name of index to use, use globbing characters * to match multiple
-q --query Lucene query to match documents (same as in Kibana)
--fields define a comma separated list of fields to export
-o --outfile output.csv name of output file
-f --outformat csv format of the output data: possible values csv, json, raw
-r --rawquery optional raw ElasticSearch query JSON string
-s --start optional start date - Format: YYYY-MM-DDThh:mm:ss.SSSZ. or any other Elasticsearch default format
-e --end optional end date - Format: YYYY-MM-DDThh:mm:ss.SSSZ. or any other Elasticsearch default format
--timefield optional time field to use, default to @timestamp
--verifySSL true optional define how to handle SSL certificates
--user optional username
--pass optional password
--size 1000 size of the scroll window, the more the faster the export works but it adds more pressure on your nodes
--trace false enable trace mode to debug queries send to ElasticSearch

Output Formats

  • csv - all or selected fields separated by comma (,) with field names in the first line
  • json - all or selected fields as JSON objects, one per line
  • raw - JSON dump of matching documents including id, index and _source field containing the document data. One document as JSON object per line.
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].