Hello Team,
I'm trying to create a transform, it is creating the transform index, but when the particular (Year column) is blank or not available in the Data set document, that document is not index.
Could any one help in the below transform json query!
PUT _transform/year-test1
{
"source": {
"index": [
"newyear22"
]
},
"pivot": {
"group_by": {
"usrid.keyword": {
"terms": {
"field": "usrid.keyword"
}
},
"dept.keyword": {
"terms": {
"field": "dept.keyword"
}
},
"year.keyword": {
"terms": {
"field": "year.keyword"
}
}
},
"aggregations": {
"activity.keyword.cardinality": {
"cardinality": {
"field": "activity.keyword"
}
}
}
},
"description": "Transform testing Year null values",
"frequency": "1m",
"dest": {
"index": "year-test1"
},
"sync": {
"time": {
"field": "@timestamp",
"delay": "60s"
}
},
"settings": {
"max_page_search_size": 500
}
}
Many thanks in advance!!
@Amol