Skip to content

Instantly share code, notes, and snippets.

@kosho
Created July 23, 2018 23:43
Show Gist options
  • Save kosho/1616284f6e29592a477773917eba6e08 to your computer and use it in GitHub Desktop.
Save kosho/1616284f6e29592a477773917eba6e08 to your computer and use it in GitHub Desktop.
input {
elasticsearch {
hosts => ["localhost:9200"]
index => ""
# user => "elastic"
# password => "changeme"
query => '{"query": {"match_all": {}}}'
}
}
filter {}
output {
stdout { codec => dots }
csv {
fields => ["sameAs","title"] # Must list up all the necessary field names
path => "csv-file.csv"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment