Hi all,
i am able to print values in loop but i am stuck in one condition, i have a chain query where i am able to print values from first chain using its aggregations but "I am not able to print values from Second chain and its aggregations in HTML Table"
due to word limit .. Here is the first query: and second query is in my next Reply to this post...
{
"trigger": {
"schedule": {
"interval": "10s"
}
},
"input": {
"chain": {
"inputs": [
{
"first": {
"search": {
"request": {
"search_type": "query_then_fetch",
"indices": [
"logstash-checkpoint-*"
],
"types": [],
"body": {
"aggs": {
"time": {
"terms": {
"field": "@timestamp",
"size": 50,
"order": {
"_count": "desc"
}
},
"aggs": {
"srcip": {
"terms": {
"field": "srcip.keyword",
"size": 50,
"order": {
"_count": "desc"
}
},
"aggs": {
"dstip": {
"terms": {
"field": "dstip.keyword",
"size": 50,
"order": {
"_count": "desc"
}
}
}
}
}
}
}
},
"version": true,
"_source": {
"excludes": []
},
"stored_fields": [
"*"
],
"script_fields": {},
"docvalue_fields": [
"@timestamp"
],
"query": {
"bool": {
"must": [
{
"match_all": {}
},
{
"match_all": {}
},
{
"exists": {
"field": "srcip.keyword"
}
},
{
"exists": {
"field": "dstip.keyword"
}
},
{
"bool": {
"should": [
{
"match_phrase": {
"threaintel_IP.keyword": "true"
}
}
],
"minimum_should_match": 1
}
},
{
"range": {
"@timestamp": {
"gte": "now-1d"
}
}
}
],
"filter": [],
"should": [],
"must_not": []
}
}
}
}
}
}
},