**Thank you for kind answer. **
I've changed my code like you said. It is working well now.
I can see the result as follows.
"message": "45.32.120.142 - - [13/Sep/2018:13:56:21 +0900] \"GET /js/czjl.js HTTP/1.1\" 200 119 17394 \"-\" \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36 QQBrowser/4.3.4986.400\" \"-\"",
"time_zone": "+0900",
"tags": [
"beats_input_codec_plain_applied"
],
"minute": "56",
"@timestamp": "2018-09-19T01:50:35.657Z",
"month": "Sep",
"time": "2018-Sep-13 13:56:21"
},
"_id": "ifuF72UBMz99rcsrpVUG",
"_score": 3
}
],
"total": 1537,
"max_score": 3
},
"took": 3,
"timed_out": false
},
"search": {
"request": {
"search_type": "query_then_fetch",
"indices": [
"apache_sid"
],
"types": [],
"body": {
"query": {
"bool": {
"must": [
{
"range": {
"new_time": {
"gte": "now-15d"
}
}
},
{
"range": {
"new_time": {
"lt": "now"
}
}
}
]
}
}
}
}
}
},
"condition": {
"type": "always",
"status": "success",
"met": true
},
"transform": {
"type": "script",
"status": "success",
"payload": {
"_value": null
}
},
"actions": [
{
"id": "index_payload",
"type": "index",
"status": "success",
"index": {
"response": {
"created": false,
"result": "updated",
"id": "bbb_id",
"version": 47,
"type": "bbb_type",
"index": "bbb"
}
}
}
]
},
"messages":
}
But when I search for bbb index. It is giving me empty result below.
{
"took": 10,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "bbb",
"_type": "bbb_type",
"_id": "bbb_id",
"_score": 1,
"_source": {
"_value": null
}
}
]
}
}
It seems that I can't save processing result in index even though I set up the action setting as follows.
"actions": {
"index_payload": {
"index": {
"index": "bbb",
"doc_type": "bbb_type",
"doc_id": "bbb_id"
}
}
}
I don't know what is happening right now. You 've been a big help! You must be an expert!