티스토리 뷰

elastic

elasticsearch indexing 중 Create field

shannon. 2023. 4. 24. 20:52
반응형
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
elastic geo_point type의 field 만들기  (0) 2023.04.03
인덱싱 중에...  (0) 2023.03.17
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/07   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31
글 보관함