Created
July 23, 2018 23:43
-
-
Save kosho/1616284f6e29592a477773917eba6e08 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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