Changes
Page history
jbleonesio created page: Elasticsearch
authored
Jun 09, 2015
by
Jean-Baptiste Leonesio
Show whitespace changes
Inline
Side-by-side
Elasticsearch.markdown
View page @
f5d73397
First let's take a quick look at Elasticsearch
[
glossary
](
https://www.elastic.co/guide/en/elasticsearch/reference/current/glossary.html
)
# Import
# Import
ing from CSV
Importing a CSV file into Elasticsearch using Logstash configuration file
```
...
...
@@ -137,7 +137,14 @@ Any visualisation can be filtered using a request:

# Export
# Exporting to CSV
As the REST API format is natively JSON, exporting data to CSV requires a bit of additional work.
I found some existing tools:
[
estab
](
https://github.com/miku/estab
)
[
elasticsearch-csv
](
https://github.com/jprante/elasticsearch-csv
)
But neither seems to use the efficient
[
Scroll API
](
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html
)
So I rolled my own Bash script using the Scroll API and
[
jq
](
http://stedolan.github.io/jq
)
for JSON parsing:
```
bash
#!/bin/bash
...
...
...
...