[ELK스택] Elastic Search (3)
·
데이터 엔지니어링/AWS
Metric Aggregation 산술 aggregation { "size" : 0, "aggs" : { "stats_score" : { "stats" : { "field" : "points" } } } } curl -XGET -H'Content-Type: application/json' localhost:9200/_search?pretty --data-binary @avg_points_aggs.json AVG(평균) MAX (최대값) status : count/ min / max / avg / sum => aggregation이 다 나올 수 있는 코드 Bucket aggregation SQL Group by와 같음 { "size" : 0, "aggs" : { "team_stats" : { "terms"..