Skip to content

Instantly share code, notes, and snippets.

@shogochiai
Last active August 29, 2015 14:03
Show Gist options
  • Save shogochiai/6c3c3d4093913e99fcb9 to your computer and use it in GitHub Desktop.
Save shogochiai/6c3c3d4093913e99fcb9 to your computer and use it in GitHub Desktop.
td_es_test

入力

echo '{"test":"test", "date":"'```date "+%Y-%m-%dT%T"```'"}' | fluent-cat -h <host_ip> -p 24224 debug.test

出力

curl -X POST 'http://localhost:9200/fluentd/_refresh' && curl -XGET http://localhost:9200/fluentd/_search?sort=date:desc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment