Hello,
I'd like to know how to use Reindex API with aggregations inside query?
Let me explain. :
I've an index called index_1 with over 30 millions documents (API Logs)
id, Login, visited_page, timestamp, browser, status_code
1 xxxxx@xxxx.xxx, xxxxx, 2017-01-12 23:33:00, iPhone, 200
2 yyyyy@yyyy.yyy, yyyyyy, 2017-01-12 13:35:30, Android, 200
3 xxxxx@xxxx.xxx, xxxxx, 2017-01-11 15:12:23, iPhone, 200
4 xxxxx@xxxx.xxx, xxxxx, 2017-01-12 10:46:41, iPhone, 200
.....
I'd like the create a new index (aggregated index), that contains one line/login with all statistics:
result:
Login,total_count_connection, count_connection_day, date_first_connection, date_last_connection, count_failed_connection
xxxxx@xxxx.xxx, 140, 3, 2017-01-12 23-33-00, 2017-01-01 13:34:56, 3
Need help.
Thanks in advance.