"{\"query\":\"SELECT Count(appId) FROM eps_stbl_logs where cast(timestamp AS DATE) = TODAY...
还有一种使用sql查询的方式,运行elastic安装目录中的命令行: ./bin/elasticsearch-sql-cli 进入之后可以像操作数据库一样查询。 比如: sql> SELECT * FROM library WHERE release_date < '2000-01-01' | ; author | name | page_count | release_date ---+---+---+--- Dan Simmons |Hyperion |482 ...