반응형
index생성 후 개별적으로 계산을 하여 필드를 생성해야되는 경우, Create field 기능을 사용한다.
자료형은 소수점을 살려야하는 경우로 double을 선택했다.
그리고 Set value를 하는 defined script에는 다음과 같이 적는다.
이미 인덱싱된 size와 time_taken 이라는 필드가 있을 경우.
emit(doc['size'].value/doc['time_taken'].value)
https://www.elastic.co/guide/en/kibana/current/managing-data-views.html#runtime-fields
Manage data views | Kibana Guide [8.7] | Elastic
Runtime fields can impact Kibana performance. When you run a query, Elasticsearch uses the fields you index first to shorten the response time. Index the fields that you commonly search for and filter on, such as timestamp, then use runtime fields to limit
www.elastic.co
반응형
'elastic' 카테고리의 다른 글
elasticsearch.yml add more (0) | 2023.04.23 |
---|---|
Elastic stack (0) | 2023.04.12 |
elasticsearch backfill, forward-fill with previous log's value (0) | 2023.04.12 |
elasticsearch geo indexing -geospatial fields (0) | 2023.04.12 |
elastic geo_point type의 field 만들기 -geospatial fields (0) | 2023.04.03 |